[SOLVED!] Problem indexing..(updated)
Posted: Wed Nov 26, 2003 8:55 pm
is there a way to merge 2 arrays into 1 array while sorting them? 
i know how to use array_merge, however it's just putting all the data for my first array in first, and then all the data from my second in afterwards.
for example :
i have 2 arrays : $time and $date.
each of these arrays has 2 values
when i try to use
it's coming out like this :
Array([0]20031010 [1]20031111 [2] 110505 [3] 040048)
anyone have a clue to where i can have it input the arrays as date, time, date, time, date, time, etc... ?
i know how to use array_merge, however it's just putting all the data for my first array in first, and then all the data from my second in afterwards.
for example :
i have 2 arrays : $time and $date.
each of these arrays has 2 values
when i try to use
Code: Select all
<?php
$result = array_merge($time, $date);
print_r($result);
?>Array([0]20031010 [1]20031111 [2] 110505 [3] 040048)
anyone have a clue to where i can have it input the arrays as date, time, date, time, date, time, etc... ?