Select a from/to pair...
".$timetable["time_points"][$i+1]] .= $timetable["short_name"].";"; } } } } $completedPaths = Array("Cameron Ave Bus Station->Lathlain St Bus Station", "Lathlain St Bus Station->Cohen St Bus Station", "Cohen St Bus Station->Lathlain St Bus Station", "Lathlain St Bus Station->Cameron Ave Bus Station", "Lathlain St Bus Station - Platform 1->Cameron Ave Bus Station - Platform 1", "Lathlain St Bus Station - Platform 2->Cameron Ave Bus Station - Platform 1", "Lathlain St Bus Station - Platform 2->Cameron Ave Bus Station - Platform 2", "Lathlain St Bus Station - Platform 3->Cameron Ave Bus Station - Platform 2", "Lathlain St Bus Station - Platform 3->Cameron Ave Bus Station - Platform 3", "Lathlain St Bus Station - Platform 4->Cohen St Bus Station - Platform 4", "Lathlain St Bus Station - Platform 4->Cohen St Bus Station - Platform 6", "Lathlain St Bus Station - Platform 5->Cohen St Bus Station - Platform 5", "Lathlain St Bus Station - Platform 6->Cohen St Bus Station - Platform 5", "Cohen St Bus Station - Platform 1->Lathlain St Bus Station - Platform 2", "Cohen St Bus Station - Platform 1->Lathlain St Bus Station - Platform 3", "Cohen St Bus Station - Platform 2->Lathlain St Bus Station - Platform 1", "Cohen St Bus Station - Platform 2->Lathlain St Bus Station - Platform 2", "Cohen St Bus Station - Platform 2->Lathlain St Bus Station - Platform 3", "Cohen St Bus Station - Platform 3->Lathlain St Bus Station - Platform 1", "Cameron Ave Bus Station - Platform 4->Lathlain St Bus Station - Platform 4", "Cameron Ave Bus Station - Platform 5->Lathlain St Bus Station - Platform 5", "Cameron Ave Bus Station - Platform 5->Lathlain St Bus Station - Platform 6" ); ksort($paths); foreach ($paths as $path => $routes) { if (!in_array($path,$completedPaths)) echo "
".sizeof(explode(";",$routes))." $path
\n"; } ?>
from
to
on routes
Reverse?