Showing posts with label switch. Show all posts
Showing posts with label switch. Show all posts

Thursday, January 13, 2011

Switch Two Variables

If you ever need to switch the values of two variables without using a temporary variable, this should come in handy.

list($var1, $var2) = array($var2, $var1);