Sedangkan loop php
<?php
$a = 0;
while($a<=5){
echo $a."<br>";
$a++;
}
?>
SISO
<?php
$a = 0;
while($a<=5){
echo $a."<br>";
$a++;
}
?>
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
while(true) {
// Infinite Loop
}
<?php
$x = 1;
do {
echo "The number is: $x <br>";
$x++;
} while ($x <= 5);
?>
<?php
$x = 1;
while($x <= 5) {
echo "The number is: $x <br>";
$x++;
}
?>
<?php
$limit = 100;
for($counter,$counter<=$limit;$counter++){
// code
}
?>