Loops

  1. Using for loop to iterate over elements.
<?php
for ($i = 1; $i <= 5; $i++) {
    echo "Count: $i <br>";
}
?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *