Exclusive Or (XOR) [^]

Can someone explain easily what this does and how it’s used? I’ve been reading my actionscript bible but it’s hard to understand how this works.