note 74412 deleted from function.array-combine by bjori

From: Date: Thu, 21 Feb 2008 20:25:33 +0000
Subject: note 74412 deleted from function.array-combine by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136367@lists.php.net to get a copy of this message
Note Submitter: chriswillarddesign at yahoo dot com ---- Here is my take on the combine function for PHP < 5: <? // Combines two associate arrays by making a array with the key being $a1 and the value $a2. function array_combine($a1,$a2) { for($i=0;$i<count($a1);$i++) $ra[$a1[$i]] = $a2[$i]; if(isset($ra)) return $ra; else return false; } ?>

« previous php.notes (#136367) next »