<?PHP
$arr1 = array("a","b","c");
$arr2 = array("1","2","3");
function multiply_arrays($arr1,$arr2){
//what is the best way to do that in terms of speed and memory
return $arr3;
}
?>
繁殖它们的最佳方法是什么?
结果应为具有以下值的数组:
A1
A2型
A3
B1
B2
B3
C1
C2
C3
因为我不想面对这样的错误:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39 bytes)