Well the problem is that is acutally much more complex arrays than I made out. For example
I start of with two arrays: repeating_events and events;
I preform an array merge on these two arrays.
Now, each array is an array of arrays that contrains like 12 elements.
I want to merge the two and sort them based on date. I tried what you suggested and that did not work.
This thing really has me stumpped.
I just tried this and no luck =/
$dbList = array_merge($events_to_show , $repeated_events_to_show);
for($i = 0; $i < sizeof($dbList); $i++){
$dateArray[$i] = $dbList[$i]["event_date"];
$eventInfo[$i] = $dbList[$i];
}
array_multisort($eventArray, "SORT_ASC", "SORT_NUMERIC", $dateArray);
event date is a unix timestamp
How else can i go about this?
Thanks