note 44732 deleted from function.list by googleguy

From: Date: Thu, 13 Sep 2012 10:08:23 +0000
Subject: note 44732 deleted from function.list by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190711@lists.php.net to get a copy of this message
Note Submitter: HW ---- The list() construct can be used within other list() constructs (so that it can be used to extract the elements of multidimensional arrays): <?php $matrix = array(array(1,2), array(3,4)); list(list($tl,$tr),list($bl,$br)) = $matrix; echo "$tl $tr $bl $br"; ?> Outputs "1 2 3 4".

« previous php.notes (#190711) next »