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
Tell me how is the ternary conditional operator used in php?
What Is a Persistent Cookie?
Is there an easy way to delete an element from a php array?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
What is uri routing?
armstrong number by using php while number is given by the keyboard.?
What is a lambda function in php?
How do you destroy a session?
What are variables in research examples?
Is php an api?
Is json a string php?
how to detect a mobile device using php
How to create a session? How to set a value in session?
What is an abstract class in php?
How to create a session? How to set a value in session? How to remove data from a session?