note 35984 added to function.array-combine
| From: | zitan at mediasculpt dot net | Date: | Mon, 22 Sep 2003 04:19:05 +0000 |
| Subject: | note 35984 added to function.array-combine | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56864@lists.php.net to get a copy of this message | ||
Here's another version ::
<?
function array_combine($keys,$values){
$combined = array();
while ( ($key = array_shift($keys)) && ($value = array_shift($values)) )
{
$combined["$key"] = $value;
}
return $combined;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.array-combine.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35984
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35984&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35984&report=yes