php while 循环
只要条件为真,执行while循环
源码:
<?php
$x = 1;
while ($x<=5) {
echo "the number is : <br>";
$x++;
}
输出:
the number is :1
the number is :2
the number is :3
the number is :4
the number is :5
php while 循环
只要条件为真,执行while循环
源码:
<?php
$x = 1;
while ($x<=5) {
echo "the number is : <br>";
$x++;
}
输出:
the number is :1
the number is :2
the number is :3
the number is :4
the number is :5