Code by Yunk
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);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment