note 80910 deleted from function.list by googleguy
| From: | googleguy@php.net | Date: | Thu, 13 Sep 2012 10:04:38 +0000 |
| Subject: | note 80910 deleted from function.list by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190699@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at vanzonneveld dot net
----
Another way to do it associative (if your array isn't numeric), is to just use array_values
like this:
<?php
$os = array();
$os["main"] = "Linux";
$os["distro"] = "Ubuntu";
$os["version"] = "7.10";
list($main, $distro, $version) = array_values($os);
?>