note 44732 added to function.list

From: Date: Sat, 14 Aug 2004 20:08:54 +0000
Subject: note 44732 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-74641@lists.php.net to get a copy of this message
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". ---- Manual Page -- http://www.php.net/manual/en/function.list.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44732 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44732&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44732&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74641) next »