The do while Statement

The do/While repeat through the code, until the condition is met.

Syntax :
do
{
code ...
}
while (condition);
Example :

";
}
while ($val<3);>
Output of this code :

Value is 1
Value is 2
Value is 3