PHPMYSQLILOOP

PHPMYSQLI-LOOP



<!doctype html>
<head><title>PHP LOOPS</title></head>


<body> 

<?php  

//While Loop in PHP

$num=0

while($num<30){


num++;

echo "day number:".$num . '<br>



}


// For Loop in PHP

for($year=1980 ;  $year<=2014; $year++){


echo "year number is:" .$year ."<br>";

}

//For EachLoop in PHP


$students=array("EENA","Meena","Deeka");


foreach ($students as $records)
{

echo $records."<br>";


}

?>



</body>