How can I print out the numbers from 0
to 20
with a loop in PHP?
I hope some one can help.
Thank开发者_开发知识库s!
You want a for loop: http://php.net/manual/en/control-structures.for.php
Use a for loop:
for ($i = 0; $i <= 20; $i++)
{
echo $i . "\n";
}
精彩评论