Write a PHP code to print following number pattern:
123
456
789
Answer Posted / sheetal
<?php
$k=1;
while($k<9)
{
for($i=1;$i<=3;$i++)
{
echo $k;
$k++;
}
echo "</br>";
}
?>
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
Which is true about the singleton design pattern?
What is the mysql injection?
When do you use define() and when do you use const. What are the main differences between those two?
Which is better mysql or sql?
What does $this do in php?
What is the purpose of pear in php?
What is different between software and app
How to create an array of a group of items inside an html form?
How do you put a space in html?
How can we access the data sent through the url with the get method?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
Require_once(), require(), include(). What is difference between them?
Is php easier than node?
How can we define a variable accessible in functions of a php script?