note 73127 deleted from function.array-combine by nlopess
| From: | nlopess@php.net | Date: | Thu, 15 Feb 2007 13:22:53 +0000 |
| Subject: | note 73127 deleted from function.array-combine by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123440@lists.php.net to get a copy of this message | ||
Note Submitter: eSherpa
----
The code below:
<?php
if (! function_exists('array_combine')) {
function array_combine($keys, $values) {
foreach($keys as $key) $out[$key] = array_shift($values);
return $out;
}
}
?>
... should read:
<?php
if (! function_exists('array_combine')) {
function array_combine($keys, $values) {
foreach($keys as $key=>$value) $out[$key] = array_shift($values);
return $out;
}
}
?>