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 the difference between mysql_fetch_array() and mysql_fetch_assoc()?
why did u want to leave your past organisation?
Is php 7 backwards compatible?
Explain about the data types in PHP?
How to write in a file in php?
Is php case sensitive?
Does session expire on closing browser?
Which method removes the last element from the end of an array?
What is the difference between query and inquiry?
Tell me what's the difference between include and require?
Tell me how comfortable are you with writing html entirely by hand?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
Why do we use namespace in php?
How to get no. of rows using MYSQL function?
What is empty php?