Ordering an array and then ordering additional arrays to match
Posted on 2015-02-13
This is a little messy maybe, but it's what I've got....
I have a number of arrays with matching keys (not sure if I am using the terminology right).  in each array goes with the  in all the other arrays,  in each goes with  in the others, ect.
I've spliced them down to the number of elements I want in each:
$rank = array_splice($rank,0,7);
$title = array_splice($title,0,7);
$episode = array_splice($episode,0,7);
$epTime = array_splice($epTime,0,7);
$epSum = array_splice($epSum,0,7);
Now.... I need to re-order the $epTime array by the time that is in it, earlier to later..., but there is some additional information in there... here's the print_r results for that array.
Array (  => 10:00PM | CBS  => 9:00PM | CBS  => 9:00PM | NBC  => 8:00PM | NBC  => 9:00PM | Syfy  => 9:00PM | FOX  => 10:00PM | Syfy )
Then I need all the other arrays ordered so they match up with the $epTime order. So... for example, if  moved to  in $epTime,  needs to move to  in all the other arrays as well.
I don't have a clue as to how to do this... can you help?