If specified condition is true, loop through block of code once and then repeat again and again.
Syntax of PHP do while loop:
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 exit control loop because it check the condition at last(on exit).
Do while loop executes at least once when if condition is false.