check a value inside a while loop and stops if found in php code example Example: do while php <?php $i = 0; do { echo $i; } while ($i > 0); ?>