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
Why should I learn php?
What is the use of mysql_fetch_assoc in php?
How to know user has read the email-php?
Where can I find php ini file?
What is an operator in php?
Tell me how can we pass the variable through the navigation between the pages?
How to check your php installation?
How do I run a php script in windows?
What is use of mysqli_query in php?
How to get the directory name out of a file path name?
Can we use include ("xyz.php") two times in a php page "index.php"?
Tell me what is the actually used php version?
Where is my php ini file?
Is array a key php?
What Is a Persistent Cookie?