If the specified condition is true, loop through the block of code once and then repeat again and again.
code to be executed;
} while (condition);
echo "The number is: $a <br/>";
} while ($a <= 3);
The number is: 11
The number is: 12
The number is: 13
Do while loop is known as an exit control loop because it checks the condition at last(on exit).
Do while loop executes at least once when if the condition is false.
While loop in PHP Syntax and Example