> Your first instinct, make a copy and then reassign the > values, is a straightforward way to do it.
I agree that using xor isn't a very straightforward solution, but I do like to look for creative, clever solutions: $foo = $foo + $bar; $bar = $foo - $bar; $foo = $foo - $bar; By the way, I'm hiring. :-) Chris -- Chris Shiflett http://shiflett.org/ _______________________________________________ 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