do-while

suggest change

A do-while loop executes its block once, then repeats the block while the condition is true.

$i = 0;
do {
    $i++;
    echo $i;
} while ($i < 10);

// Output: 12345678910

For detailed information, see the Loops topic.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents