PHP learn While Loop
This is simplest way to apply the loop . loops of code until the condition become true. See the example :
Example below define value $j = 1. The loop will repeat until the value of $j is equal to 3 or less than 3.
See the video Example below to know More :