for ($i=1; $i<=4; ++$i) {
echo "The number is " . $i . "\n";
}
这将输出:
The number is 1
The number is 2
The number is 3
The number is 4
我怎样才能制作一个循环来给我这样的输出:
The number is 1
The number is 1
The number is 1
The number is 1
The number is 2
The number is 2
The number is 2
The number is 2
etc
谢谢你的帮助。