这样使用while循环很奇怪?
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> $pnum=91; $randNum=0; while($pnum>18){ $randNum=$pnum/2; if($randNum<18) { break; } } echo $randNum; //显示45.5
$pnum=91; $randNum=0; while($pnum>18){ $randNum = $pnum = $pnum/2; if($randNum<18) { break; }}echo $randNum; 不知道你除以2是想干嘛。。。<div class="clear"></div>