Hello
lets say I have two arrays
<?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;
}
?>
what is the best way to multiply them?
the result should be an array with following values:
a1 a2 a3 b1 b2 b3 c1 c2 c3
because I don't want to face an error like this:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39 bytes)
Thanks