Write a PHP code to print following number pattern:
123
456
789
Answer Posted / sam
<?php
$num = "";
for($i = 1; $i<=9; $i++ )
{
if($i%3 == 1)
{
echo "<br />";
}
echo $i;
}
?>
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is an anti csrf token?
Is php procedural or oop?
Which Scripting Engine PHP uses?
Does php support multiple inheritances?
Are php variables global?
How to check curl is enabled or not in PHP
Is php used in 2019?
What is config file in php?
How do you call a constructor for a parent class?
What is $this in php?
What is isset in php?
How is it possible to know the number of rows returned in result set?
Which will check if a function exists?
What are advantages of .htaccess?
Can we run php in apache tomcat?