467,104 Members | 1,029 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

Where's XOR?

Hi,

If I want to XOR two bytes, which function should I use?
I couldn't find XOR in PHP.net.

Thank you.

Patrick Kik,
The Netherlands
Jul 17 '05 #1
  • viewed: 11049
Share:
3 Replies
Hi Patrick,

Use the ^ operator (example: $a ^ $b). See
http://www.php.net/manual/en/languag...rs.bitwise.php

Hope this helps!

Ben :-)
Ben Gribaudo - www.bengribaudo.com

When you do the common things of life in an uncommon way, you will command
the attention of the world. - George W. Carver

"Patrick Kik" <pa********@hetnet.nl> wrote in message
news:Hw*****************@amsnews03.chello.com...
Hi,

If I want to XOR two bytes, which function should I use?
I couldn't find XOR in PHP.net.

Thank you.

Patrick Kik,
The Netherlands

Jul 17 '05 #2
It does help.
Thank you.
I should have know that.
Kinda stupid...
"Ben Gribaudo" <bengribaudoN_O_@_S_P_A_Mverizon.net> schreef in bericht
news:LH******************@nwrddc01.gnilink.net...
Hi Patrick,

Use the ^ operator (example: $a ^ $b). See
http://www.php.net/manual/en/languag...rs.bitwise.php

Hope this helps!

Ben :-)
Ben Gribaudo - www.bengribaudo.com

When you do the common things of life in an uncommon way, you will command
the attention of the world. - George W. Carver

"Patrick Kik" <pa********@hetnet.nl> wrote in message
news:Hw*****************@amsnews03.chello.com...
Hi,

If I want to XOR two bytes, which function should I use?
I couldn't find XOR in PHP.net.

Thank you.

Patrick Kik,
The Netherlands


Jul 17 '05 #3
You're welcome!

Have a great day!

Ben :-) - www.bengribaudo.com

"For since the beginning of the world men have not heard, nor perceived by
the ear, neither hath the eye seen, O God, beside thee, what He hast
prepared for him that waiteth for Him." Isaiah 64:4

"Patrick Kik" <pa********@hetnet.nl> wrote in message
news:qh****************@amsnews02.chello.com...
It does help.
Thank you.
I should have know that.
Kinda stupid...
"Ben Gribaudo" <bengribaudoN_O_@_S_P_A_Mverizon.net> schreef in bericht
news:LH******************@nwrddc01.gnilink.net...
Hi Patrick,

Use the ^ operator (example: $a ^ $b). See
http://www.php.net/manual/en/languag...rs.bitwise.php

Hope this helps!

Ben :-)
Ben Gribaudo - www.bengribaudo.com

When you do the common things of life in an uncommon way, you will command the attention of the world. - George W. Carver

"Patrick Kik" <pa********@hetnet.nl> wrote in message
news:Hw*****************@amsnews03.chello.com...
Hi,

If I want to XOR two bytes, which function should I use?
I couldn't find XOR in PHP.net.

Thank you.

Patrick Kik,
The Netherlands



Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

47 posts views Thread by Andrey Tatarinov | last post: by
3 posts views Thread by A.V.C. | last post: by
7 posts views Thread by Britney | last post: by
5 posts views Thread by comp.lang.php | last post: by
5 posts views Thread by John | last post: by
1 post views Thread by not_a_commie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.