for ($i = 0; $i<=$#array; $i++) { stuff; }; #### while ($line = ) { stuff; };