run a script until a condition is met php code example Example: do while php <?php $i = 0; do { echo $i; } while ($i > 0); ?>