我有2 array datas
,("a","b","c")
和("x","y","z")
,如何把它們混合和出把結果作爲(ax)|(ay)|(az)|(bx)|(by)|(bz)|(cx)|(cy)|(cz)
? (每個$array1 + $array2
合併成一個新單詞)。PHP 2的foreach結果混合
$array1 = array("a","b","c");
foreach($array1 as $data1){
}
$array2 = array("x","y","z");
foreach($array2 as $data2){
}
//$output = '(ax)|(ay)|(az)|(bx)|(by)|(bz)|(cx)|(cy)|(cz)';