<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title> A simple While Loop </title> </head> <body> <h1>A simple while loop</h1> <div> <?php $i = 1; while ($i <= 10){ print "$i <br />\n"; $i++; } // end while ?> </div> </body> </html>