Its syntax is: int sizeof (array array) <? $s = array ("Washington", "New York", "Oregon", "California"); for ($i = 0; $i < sizeof ($s); $i++) : print "$s[$i]"; endfor; ?>