// How to use while loop in php.
Syntax
while (condition)
{
code to be executed;
}
<?php
// print 1 to 5
$a=1;
while ($a<=5)
{
echo "\t ".$a;
$a=$a+1;
}
?>
php easy tutorial, a simple php tutorial,easy php tutorial| quick guide for php developers, beginner guide for php,beginner guide for wordpress
No comments :
Post a Comment