PHP Programing language

adplus-dvertising
How can Print the number using while loop
Previous Home Next
<html>
<head>
<title>while loop </title>
</head>
<body>
<?php 
 $num = 1; 
 while ( $num <=10 ) 
{ 
print $num . " "; 
$num++; 
} 
?>
</body>
</html> 
output
12345678910 
Previous Home Next