note 45855 added to function.each
| From: | jphansenatugadotedu at osu1 dot php dot net | Date: | Tue, 21 Sep 2004 19:01:13 +0000 |
| Subject: | note 45855 added to function.each | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77120@lists.php.net to get a copy of this message | ||
To pyxl at dont_spam_on_me dot jerrell dot com:
I, too, had that question. Since each() was returning 4 elements, why could I only pick up two with
list()? Because list() only reads NUMERIC keys. So the keys "key" and "value"
are ignored, while the keys 0 and 1's values are returned into list()'s two arguments.
----
Manual Page -- http://www.php.net/manual/en/function.each.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45855
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45855&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45855&report=yes
Search -- http://master.php.net/manage/user-notes.php