<?php
$arr = array("schedules" => array(1 => "A-1", 2 => "A-2", 3 => "A-3", 4 => "A-4 ", 5 => "A-5", 6 => "B"));
$i=0; while($i<= $arr) { echo $arr["schedules"][$i]; $i++; }
?>
results in a time out .....
Makes me think of perl for some reason...
Anyway, you have to get the count of the array, and compare $i to that value in your loop control.
i am a perl programmer -- good call.
the count function worked great. thanks