By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

Where's XOR?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.