A simple while loop
$i = 1; while ($i <= 10) { print "$i
\n"; $i++; } //end while loop ?>