Advertisement

Responsive Advertisement

PHP For Loop Statement

 


The for loop - Loops through a block of code a specified number of times.

Parameters:

  • init counter: Initialize the loop counter value
  • test counter: Evaluated for each loop iteration. If it evaluates to TRUE, the loop continues. If it evaluates to FALSE, the loop ends.
  • increment counter: Increases the loop counter value

Example:



Post a Comment

0 Comments