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
How to check if a string contains a character or word in php?
What type of operation is needed when passing values through a form or an url?
What is php string function?
Tell me how is it possible to remove escape characters from a string?
What types of MYSQL function available for affecting columns
What is the use of @ in php?
What is $globals php?
Explain setcookie() function in php?
What is the difference between print() and echo()?
Which is correct about mysqli and pdo?
What is difference between strstr() and stristr() in PHP?
What is the mysql injection?
Explain the difference between isset() and empty()?
What is difference between Method overriding and overloading in PHP?
Tell me how to retrieve a cookie value?