note 53420 deleted from function.list by googleguy
| From: | googleguy@php.net | Date: | Thu, 13 Sep 2012 10:07:30 +0000 |
| Subject: | note 53420 deleted from function.list by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190708@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at miningstocks dot com
----
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);
?>