What does ^ mean in PHP? -


i came across line of code in application revising:

substr($sometext1 ^ $sometext2, 0, 512); 

what ^ mean?

it's bitwise operator.

example:

"hallo" ^ "hello" 

it outputs ascii values #0 #4 #0 #0 #0 ('a' ^ 'e' = #4).


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -