Return to Snippet

Revision: 5031
at February 6, 2008 11:00 by razel


Initial Code
if (!function_exists('array_combine'))
{
	function array_combine($arr1,$arr2) {
	   $out = array();
	   foreach ($arr1 as $key1 => $value1) {
	    $out[$value1] = $arr2[$key1];
	   }
	   return $out;
	}
}

Initial URL

                                

Initial Description
Fallback Function for versions earlier then php5

Initial Title
Array_combine() for PHP4

Initial Tags
php, array

Initial Language
PHP