While loop step 3- your first while loop


#1

i want this code to print 0123456789 . but its not working. what is the error in this code ?








<?php
//Add while loop below
$num = 0;
while ($num<=9){
echo $num;
$num ++;
}

?>
</body>


#2

It actualy is wroking, Maybe you need to refresh your page?
Tip: If you want the numbers to appear in seperate lines use this :
> echo $num ."< br>"; //(remove the space before the letters br