Have you ever seen better code for swapping two variables’ values !?
Actually yeah. Ways that people reading the code would recognize right away.
I'm not sure if that's intuitive for someone who codes in PHP, but if it belongs in a "PHP Tricks" article then it doesn't sound like the best way to do it.