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
How to get ip address of clients machine?
How can we check the value of a given variable is alphanumeric?
What are the characteristics of php?
What is the sign to start variables in PHP?
What are advantages of .htaccess?
Does php 7 support mysql?
Does php support polymorphism?
Explain whether it is possible to share a single instance of a memcache between multiple php projects?
What is the different between count() and sizeof() in php?
What sized websites have you worked on in the past?
How to calculate the difference between two dates using php?
Can we learn php without html?
How check variable is set or not in php?
What are the popular content management systems (cms) in php?
Is it difficult to learn php?