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
Tell me what is the default session time in php?
What are the variables in php?
Why php is used in html?
Why do we need session?
What is the importance of parser in php?
What exactly is validating and sanitizing?
How to support multiple-page forms?
What is the sign to start variables in PHP?
What is foreach loop in php?
What is meant by urlencode and urldecode?
Is php session id unique?
What is meant by PEAR in PHP?
What is php routing?
How to track no of user logged in?
What is the difference between exception::getmessage and exception::getline?