PHP循环while do while循环

<?php
#从1打印到10,除了5
$i=1;
while ($i<10)
{
    if ($i==5)
    {
        
        $i++;
        continue;
    }
    echo $i++."<br/>";
}
?>

 

posted @ 2018-11-06 01:07  saintdingtheGreat  阅读(499)  评论(0编辑  收藏  举报