for loop in PHP
for loop is useful in a case when it is known how many times this loop will iterate or repeat execution of the code inside of it. for loop has three elements: initial value of a variable, final value of that variable, and how the variable needs to be adjusted with each iteration of that loop. Common methods to increase or decrease the value of a variable by one.
Comments
Post a Comment