note 45901 added to function.list
| From: | jphansen at uga dot edu | Date: | Wed, 22 Sep 2004 21:03:47 +0000 |
| Subject: | note 45901 added to function.list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77214@lists.php.net to get a copy of this message | ||
Remember that list() only takes numeric subscripts. This confuses a lot of people when using it in
conjunction with each() since each() returns 4 elements and list() is only passed two arguments:
list($key,$value) = each($arr)
The reason list() only takes two arguments is each() only has two numeric keys (0 and 1); the other
two are strings ("key" and "value").
----
Manual Page -- http://www.php.net/manual/en/function.list.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45901
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45901&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45901&report=yes
Search -- http://master.php.net/manage/user-notes.php