예: $a = [A,B] $b = [C,D]
$array=array(
array (A,D) ,
PHP2018-11-16 17:57:40
<?php
$arr = array();
foreach($a as $key=>$value){
foreach($b as $key1=>$value1){
$arrSon [] = $value;
$arrSon[] = $value1;
$arr[] = $arrSon;
unset($arrSon);
}
}
에코 "<pre/ >";
print_r($arr);
?>
希望유용