How to Use For Loop Statement in PHP

How to Use For Loop Statement in PHP

In this article, you will learn How to Use For Loop Statement in PHP.


code to be executed


 <?php for($i=0;$i<=10;$i++){echo "The Number is ".$i."<br/>"; } ? >


The Number is 0
The Number is 1
The Number is 2
The Number is 3
The Number is 4
The Number is 5
The Number is 6
The Number is 7
The Number is 8
The Number is 9
The Number is 10

Looping Statement in PHP


  • Jacklyn

    September 11, 2020 - 7:01 pm

    Undeniably believe that that you stated. Your favorite justification appeared to be on the net the
    easiest thing to consider of. I say to you, I certainly get irked while folks
    consider worries that they just do not understand about.

    You controlled to hit the nail upon the highest and outlined out the whole thing with no
    need side effect , other people can take a signal. Will likely be again to
    get more. Thank you

  • How to use Looping Statement with PHP Language

    March 17, 2020 - 12:37 pm

    […] For Loop […]

Leave A Reply