【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-while.php,希望本篇文章对您学习有所帮助。
<?php
/* example 1 */
$i = 1;
while ($i <= 10) {
echo $i++; /* the printed value would be
$i before the increment
(post-increment) */
}
/* example 2 */
$i = 1;
while ($i <= 10):
print $i;
$i++;
endwhile;
?>