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
Post a Comment