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 to get a total number of elements used in the array?
What do you use php for?
What are php keywords?
What is encapsulation in php?
Are sessions stateless?
Differentiate between php5 and php7?
What is mysql_fetch_array?
Do you know what does mvc stand for and what does each component do?
What are the advantages of stored procedures in php?
Why do we need session?
How to know user has read the email-php?
How many columns can be added in a table in mysql?
Can you define an array argument as a reference type?
How to open standard output as a file handle?
What is mod_php?