note 45901 deleted from function.list by aidan

From: Date: Thu, 23 Sep 2004 08:30:22 +0000
Subject: note 45901 deleted from function.list by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77229@lists.php.net to get a copy of this message
Note Submitter: jphansen at uga dot edu ---- 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").

« previous php.notes (#77229) next »