<? $dinner = array('A', 'B', 'C'); for ($i = 0, $num_dishes = count($dinner); $i < $num_dishes; $i++) { print "Dish number $i is $dinner[$i]\n"; } ?>