<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>

<body>

<?php 
$a=1; 
while($a>0){ 
  echo $a."<br>"; 
  $a++;  //$a=$a+1;的縮寫，while每執行一圈$a就加１ 
  if($a>10) break;  //跳出迴圈 
} 
?> 

</body>
</html>