1
내가 두 배열 PHP에서 배열을 곱하는 가장 좋은 방법은 무엇입니까?
<?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
I 같은 에러에 직면하지 않으므로 이 :
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39 bytes)
감사합니다.
수학적으로 이것을 텐서 곱이라고 부르지 만, OP가 요구하는 프로그래밍 용어를 기억할 수 없습니다. –