note 10334 deleted from function.list by googleguy
| From: | googleguy@php.net | Date: | Thu, 13 Sep 2012 10:08:52 +0000 |
| Subject: | note 10334 deleted from function.list by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190712@lists.php.net to get a copy of this message | ||
Note Submitter: rubein at earthlink dot net
----
Note: If you have an array full of arrays, you can't use list() in conjunction to foreach()
when traversing said array, e.g.
$someArray = array(
array(1, "one"),
array(2, "two"),
array(3, "three")
);
foreach($somearray as list($num, $text)) { ... }
This, however will work
foreach($somearray as $subarray) {
list($num, $text) = $subarray;
...
}