Using while loop in php

Sunny.Sagar
Posted by Sunny.Sagar under Others category on | Points: 40 | Views : 531

<?php
$x = 1;

while($x <= 5) {
echo "The number is: $x <br>";
$x++;
}
?>

Comments or Responses

Login to post response