Parallel array assignment in PHP
Use list
$arr = array(1,2,3);
list($a, $b, $c) = $arr;
Use list()
:
list($a, $b, $c) = $someArray;
Use list
$arr = array(1,2,3);
list($a, $b, $c) = $arr;
Use list()
:
list($a, $b, $c) = $someArray;