For example: $a = [A,B] $b = [C,D]
How to loop $array=array(
,
) ,
God help me! ! The method that is not hard-coded can be multiple arrays. The background product specifications are as follows, both js and php can be used
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);
}
}
echo "<pre/>";
print_r($arr);
?>
希望有用