Write a PHP code to print following number pattern:
123
456
789
Answer Posted / ronak sharma
<?php
$count=0;
for($i=1;$i<=3;$i++)
{
for($j=1;$j<=3;$j++)
{
$count++;
echo $count;
}
echo "<br>";
}
?>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is stdclass in php?
What are the encryption functions available in PHP?
Where is php code written?
What is $_ files in php?
What are the different filter functions used to filter a variable?
How to make horizonatl menu and vertical menu responsive
How can you tell if a number is even or odd without using any condition or loop?
How can you declare the array in php?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
Is php easier than node?
How can we determine whether a variable is set?
What are the ways to define a constant in php?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
How is it possible to set an infinite execution time for php script?
What is artisan in php?