The example below first sets a variable i to 1 ($i=1;). Then, the while loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs:
The example below first sets a variable i to 1 ($i=1;).Then, the while loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs: