Problem Statement
Which loop checks the condition before executing the block?
Explanation
A while loop checks the condition first, then executes the body. A do-while loop executes once before checking.
Code Solution
SolutionRead Only
while($x < 5){ echo $x; $x++; }