Re:Things You Probably Didn’t Know About PHP
by RyanMcGreal on Tuesday January 12, 2010 @09:40AM
(#1047535)
Python:
>>> a = 'apple'
>>> b = 'banana'
>>> a, b = b, a
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.