02-24-2008, 03:39 PM
|
#16 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Posts: 32
Thanks: 5
|
list,array
Quote:
Originally Posted by sjaq
PHP Code:
<?php
$a = 1;
$b = 2;
// just the simplest way...
list($a, $b) = array($b, $a);
?>
|
Nice... 
__________________
מטבחים (hebrew)
|
|
|