// Do While loop in php
Syntax
do
{
code to be executed;
}while (condition);
<?php
//print 1 to 10 number
$a = 1;
do
{
echo "<br>".$a;
$a++;
}while( $a < 10 );
?>
No comments :
Post a Comment