do-while

suggest change

do-while loop first executes a block of code once, in every case, then iterates through that block of code as long as a specified 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