Sunday, April 2, 2017

How to use for loop in PHP

Loop tutorials for PHP (PHP For Loop)


 Loop tutorials for PHP (PHP For Loop)
  
This loop is a little more complicated, however, While the work is in the loop for loop, but this is due to some facilities....
1.for (init; condition; increment)2. {3.code to be executed;4.}for loop statement brackets inside the 3 expression was also semicolon divided by the .1 May the assignment statement (loop control variable), the first Loop repeating earlier once the execution is the 2 nd the Boolean expression that occurs each time repeating the earlier once the value of the nirnita (evaluate) is If true, this would be repeating the false return, and will be closed 3 rd, then repeating the increase or decrease the value of the loop control variable example used by hayanicera Loop has begun and it will continue for as long as I i = 1 with a value of less than or equal to 5 I increase the value by 1.



 <? PHPfor ($ i = 1; $ i <= 5; $ i ++) {echo "The number is". $ I. "<br />";}?>


OutputThe number is 1The number is 2The number is 3The number is 4The number is 5Empty of any expression or expression may contain more than one, separated by commas.  Boolean expression that is empty, then the default value of all output 1-10 example of this would be true.Another loop is used to array the name of the foreach loop, so it'll come back later.



To watch click this video....

2 comments:

  1. Thanks for sharing informative article on web design and development. As every business is moving towards online marketing, there is huge demand for trained and skilled web designers and developers. Web designing Training in Chennaiweb designing course in chennai|web designing training

    ReplyDelete
  2. Much thanks for making such a resourceful article accessible here. I got to gain a lot new guidance. Keep up with this tremendous work.
    Website Designer in Lucknow | Web design company

    ReplyDelete