3 <title
>Loops
: pointers
</title
>
7 $ages = array(4, 8, 15, 16, 23, 42);
10 echo "1: " . current($ages) . "<br />";
12 echo "2: " . current($ages) . "<br />";
14 echo "3: " . current($ages) . "<br />";
18 // while loop that moves the arrat pointer
19 while ($age = current($ages)) {