for ($i=1; $i<=500; $i++)
{
echo "The number is " . $i . "<br />";
}
好吧,这是 for 循环,但我想要下一个输出:
This number is 1 is Red
This number is 2 is blue
This number is 3 is green
This number is 4 is orange
This number is 5 is Red
This number is 6 is blue
This number is 7 is green
This number is 8 is orange
This number is 9 is Red
This number is 10 is blue
This number is 11 is green
This number is 12 is orange
- 基本上每四次重复红色、蓝色、绿色、橙色 - 这是脑筋急转弯。