note 74412 added to function.array-combine

From: Date: Tue, 10 Apr 2007 15:26:46 +0000
Subject: note 74412 added to function.array-combine
Groups: php.notes 
Request: Send a blank email to php-notes+get-125265@lists.php.net to get a copy of this message
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; } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 70.151.121.230 ---- Manual Page -- http://www.php.net/manual/en/function.array-combine.php Edit -- https://master.php.net/note/edit/74412 Del: integrated -- https://master.php.net/note/delete/74412/integrated Del: useless -- https://master.php.net/note/delete/74412/useless Del: bad code -- https://master.php.net/note/delete/74412/bad+code Del: spam -- https://master.php.net/note/delete/74412/spam Del: non-english -- https://master.php.net/note/delete/74412/non-english Del: in docs -- https://master.php.net/note/delete/74412/in+docs Del: other reasons-- https://master.php.net/note/delete/74412 Reject -- https://master.php.net/note/reject/74412 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125265) next »