note 76980 deleted from function.list by googleguy

From: Date: Thu, 13 Sep 2012 10:05:41 +0000
Subject: note 76980 deleted from function.list by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190702@lists.php.net to get a copy of this message
Note Submitter: mick at wireframe dot com ---- It's worth noting that, as expected, list() does not have to have as many variables (and/or empty skips) as there are elements in the array. PHP will disregard all elements that there are no variables for. So: <?php $Array_Letters = array('A', 'B', 'C', 'D', 'E', 'F'); list($Letter_1, $Letter_2) = $Array_Letters; echo $Letter_1 . $Letter_2; ?> Will output: AB Mick

« previous php.notes (#190702) next »