note 80910 added to function.list
| From: | kevin at vanzonneveld dot net | Date: | Wed, 06 Feb 2008 15:12:56 +0000 |
| Subject: | note 80910 added to function.list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135821@lists.php.net to get a copy of this message | ||
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);
?>
----
Server IP: 83.137.20.135
Probable Submitter: 87.233.232.233
----
Manual Page -- http://www.php.net/manual/en/function.list.php
Edit -- https://master.php.net/note/edit/80910
Del: integrated -- https://master.php.net/note/delete/80910/integrated
Del: useless -- https://master.php.net/note/delete/80910/useless
Del: bad code -- https://master.php.net/note/delete/80910/bad+code
Del: spam -- https://master.php.net/note/delete/80910/spam
Del: non-english -- https://master.php.net/note/delete/80910/non-english
Del: in docs -- https://master.php.net/note/delete/80910/in+docs
Del: other reasons-- https://master.php.net/note/delete/80910
Reject -- https://master.php.net/note/reject/80910
Search -- https://master.php.net/manage/user-notes.php