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


Please Help Members By Posting Answers For Below Questions

Tell me what is the default session time in php?

757


What are the variables in php?

800


Why php is used in html?

700


Why do we need session?

728


What is the importance of parser in php?

838


What exactly is validating and sanitizing?

799


How to support multiple-page forms?

759


What is the sign to start variables in PHP?

792


What is foreach loop in php?

760


What is meant by urlencode and urldecode?

841


Is php session id unique?

731


What is meant by PEAR in PHP?

744


What is php routing?

709


How to track no of user logged in?

827


What is the difference between exception::getmessage and exception::getline?

746