I got a bit probs how to echo print_r() output array.
Array (
[[email protected]] => Array (
[0] => 70,80
[1] => 90,100
)
[[email protected]] => Array (
[0] => 10
)
)
function array_combines($arr1,$arr2) {
$out = array();
foreach($arr1 as $key1 => $value1) {
$out[$value1][] = $arr2[$key1];
}
return $out;
}
print_r(array_combines($a,$b));
I expecting echo:
key: [email protected]
value: 70,80 90,100
key: [email protected]
value: 10
$aand$b?print_r()if you want a custom output format.