Theme
Primary Color
Lesson 38

Do While

<?php

  /*
    Control Structure
    - Loop

    Do, While
  */

  $i = 4;

  while ($i <= 3) {

    echo "$i<br>";

    $i++;

  }

  do {

    echo "$i<br>";

    $i++;

  } while ($i <= 3);


  $index = 0;

  while ($index <= 100) {

    echo "$index<br>";

    $index += 5;

  }