my PHP arrays, index and value?

Yue

New member
sorry for the typo, i meant to say "i had no luck"
i've got 2 arrays

$arr1 = array('2009/1/1', '2009/1/2', '2009/1/3', '2009/1/4', '2009/1/5');
$arr2 = array(12, 54, 60, 98, 34);

and now i need another array (array3) which will have values inside arr1 as its index and values inside arr2 as its values.

so basically,
$arr3 = array($arr1 => $arr2);

and i tried using 'foreach' and 'for' loops but i had to luck. only the last value goes into arr3.

so is there anyway i can get it done.
i'm stuck trying to figure it out almost all day.

help is very much needed and appreciated.
 
Back
Top