On 7/7/07, David Krings <[EMAIL PROTECTED]> wrote:

I'd use a third variable to keep a copy of one variable before basically
making both the same first and then assigning the saved to copy to the
originally uncopied variable.
Did I get hired?
No! Well, unless you are desparate...
Thanks to Google I now know the answer:
$x = $x xor $y;
$y = $x xor $y;
$x = $x xor $y;


Heh. If you gave me that answer I wouldn't hire you.
Good luck at Google, though.

--
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to