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


Please Help Members By Posting Answers For Below Questions

What is php namespace?

750


Which cryptographic extension provide generation and verification of digital signatures?

747


Do you know what is the function mysql_pconnect() usefull for?

736


What is the $_ server php_self variable?

733


Differences between get, post and request methods ?

763


What is php variable?

767


Which php global variable is used for uploading a file?

795


What is the meaning of ‘escaping to php’?

860


How to invoke a user function?

786


Explain which cryptographic extension provide generation and verification of digital signatures?

802


What is use of isset function in php?

813


What does $_server mean?

771


Explain the difference between array_merge() and array_combine()?

760


What are the differences between GET and POST methods?

768


How can we submit from without a submit button?

778