note 53420 added to function.list
| From: | webmaster at miningstocks dot com | Date: | Wed, 01 Jun 2005 06:05:38 +0000 |
| Subject: | note 53420 added to function.list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89718@lists.php.net to get a copy of this message | ||
One way to use the list function with non-numerical keys is to use the array_values() function
<?php
$array = array ("value1" => "one", "value2" => "two");
list ($value1, $value2) = array_values($array);
?>
----
Manual Page -- http://www.php.net/manual/en/function.list.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53420
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53420&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53420&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53420&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53420&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53420&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53420&report=yes
Search -- http://master.php.net/manage/user-notes.php