Hi ,
I have a loop but I need to say that every time $i is printed the value of $i is a number so the start $i will be = 0 and at the end after 20 $i's it will be $i = 20
I hope some one can help
Thanks
Hi ,
I have a loop but I need to say that every time $i is printed the value of $i is a number so the start $i will be = 0 and at the end after 20 $i's it will be $i = 20
I hope some one can help
Thanks
Use a for loop:
for ($i = 0; $i <= 20; $i++)
{
echo $i . "\n";
}
You want a for loop: http://php.net/manual/en/control-structures.for.php