how to keep a loop running php code example
Example 1: do while php
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
Example 2: while true php
while(true) {
// Infinite Loop
}
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
while(true) {
// Infinite Loop
}