I very new to PHP (started this week) and am trying to combined two arrays into multiple little arrays of two based on their key value.
Input:
$var1= array([0]=> float(285.01) [1]=> float(285.28))
$var2= array([0]=> "a" [1]=> "b")
Output:
$var3=array(
array(float(285.01),"a")
array(float(285.01),"b")
)
I tried using:
$var3 = array_merge_recursive($var1,$var2);
but that just adds them end to end.
Can anyone help me out?