code:-

 <?php
for($num=1; $num<=10; $num++)
{
echo "$num";
}
?>

output:-

12345678910

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post