i have this situation $test:
$months = Array
(
[3] => 7.56
[7] => 11.94
[1] => 6.90
[17] => 6.90
[6] => 6.90
[4] => 19.50
)
$total = Array
(
[31] => 10
[17] => 4
)
i would like to combine them in such way that ill get $x = array([17] => 6.90)
basically put together the values from $months and the keys from $total where the $months.key = $total.key
any ideas?
thanks
1 Answer