PHP For Loop

The for loop statement

The for loop is used when we want to execute block of code known times.

Property Description
initialization Sets a counter variable
condition It test the each loop iteration for a condition. If it returns TRUE, the loop continues. If it returns FALSE, the loop ends.
increment Increment counter variable