PHP while loop

, by Prashant Gunjal

Program :
<html>
<head>
<title>PHP while loop</title>
</head>
<body>
<?php
    $no[1]=10;
    $no[2]=20;
    $no[3]=45;
    $count=1;
    while($count<4)
    {
        echo "<br>no[$count]=".$no[$count];
        $count++;
    }
?>
</body>
</html>

OUTPUT :

0 comments: