Showing posts with label while loop in in php. Show all posts
Showing posts with label while loop in in php. Show all posts

Monday, June 4, 2018

While Loop Statement in PHP

A very simple program that I wrote in PHP to demonstrate the use of while loop statement.

I am currently accepting programming work, it project, school 

programming projects , thesis and capstone projects, IT consulting 

work and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.



Sample Program Output


Program Listing

while.php

<?php 
$x = 1; 


echo "<h1> While Statement in PHP </h1>";
echo "<br>";

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