配列の長さが同じである場合、1 つの配列のキー名を 2 番目の配列のキー値に変更する方法。
たとえば、$aa....$bb
$aa=Array ("0" =>"cd","1" =>"udd","2") があります。 => ;"dsd");
$bb=Array ( "0" => 13ds,"1" =>"tdfestsdfa1","2" => "1122sdfdsasdf33abc") ;
Put $ aa配列 キー名が2番目の配列$bbのキー値になります。
以下の配列¥ccの作り方です。
$cc=Array ( "cd" => 13ds,"udd" =>"tdfestsdfa1","dsd" => "1122sdfdsasdf33abc") ;
いくつかくださいアドバイス 。
------解決策のアイデア----------------------
$aa = Array("0" => "cd", "1" => "udd","2" => "dsd");<br />$bb = Array("0" => "13ds", "1" => "tdfestsdfa1", "2" => "1122sdfdsasdf33abc");<br />$cc = array_combine($aa, $bb);<br />print_r($cc);
$aa = Array("0" => "cd", "1" => "udd","2" => "dsd");<br />$bb = Array("0" => "13ds", "1" => "tdfestsdfa1", "2" => "1122sdfdsasdf33abc");<br />$cc = array_combine($aa, $bb);<br />print_r($cc);