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
Is php a programming language?
How to create a text file in PHP?
What are the features of php 7?
What is php artisan serve?
How to send a cookie to the browser?
Why laravel is best php framework?
What is a php certification?
Explain the types of functions for Splitting String?
Why do we use session?
What are the advantages of indexes in php?
What type of comments are supported by PHP.
How to set a page as a home page in a php based site?
What is difference between post and put in rest?
How does php session work?
What is abstract class php?