note 76851 deleted from function.array-combine by bjori
| From: | bjori@php.net | Date: | Thu, 21 Feb 2008 20:28:11 +0000 |
| Subject: | note 76851 deleted from function.array-combine by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-136373@lists.php.net to get a copy of this message | ||
Note Submitter: robertark at gmail dot com
----
All of those 'array_combine' emulators did -not- work for me, so I created one of my own,
out randomly, and it worked for me, maybe you can give it a shot and let me know how it works.
Thanks..
function array_combine($arr1, $arr2)
{
$buffer = array();
foreach($arr1 as $key1 => $arr_1)
{
foreach($arr2 as $key2 => $arr_2)
$buffer[$arr_1] = $arr_2;
}
return $buffer;
}