do while condition in php code example
Example 1: do while php
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
Example 2: while in php
<?php
echo 'nice';
?>
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
<?php
echo 'nice';
?>