$ga = array(4, 3, 1, 2, 4, 2); for ($i = 0; $i < count($ga); $i++) { echo "The # $i: " . $ga[$i] . "<br />"; }