Definitions [2]
Define Looping Structure in PHP.
- Looping Structures are useful for writing iteration logics.
- It is the most important feature of many programming languages, including PHP.
- They are implemented using the following categories,
- for Loop
- While Loop
- foreach Loop
- Do While Loop
Define for loop in PHP.
For loop is an important functional looping system which is used for iteration logics when the programmer know in advance how many times the loop should run.
Syntax:
for (init counter; test counter; increment counter)
{
code to be executed;
}