Write a PHP code to print following number pattern:
123
456
789
Answer Posted / sheetal
<?php
$k=1;
while($k<9)
{
for($i=1;$i<=3;$i++)
{
echo $k;
$k++;
}
echo "</br>";
}
?>
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How can you encrypt password using php?
What is the main difference between php 4 and php 5?
Php code to find whether a number armstrong or not?
What is the difference between apache and tomcat?
What new features php7 has in store for us?
List data types in PHP?
What is memcache?
What is difference between require_once(), require(), include()?
When to use self over $this?
What is polymorphism?
What is cookie and session in php?
What is the use of curl()?
How arrays are used in php?
What is overloading and overriding in oop?
How to read and display a HTML source from the website url?