answersLogoWhite

0


Best Answer

This is one of possible solutions:

for ($i=5; $i>0; $i--)

{

for ($j=$i; $j>0; $j--) {

echo $i;

}

echo " ";

}

?>

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write 55555 4444 333 22 1 in php?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is php extension?

We can write php extension is many way... .php , .php5, .php4


How do you write a php algorithm?

Well if you know php then you can write your own algorithm php syntax is <?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?> //close php tag


What is PHP enabled host?

A host that allows you to write in PHP


How do you write hello world in PHP?

<?php echo "Hello world"?>


How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


What is php code for online recruitment system?

write php coding for online carrier guidance and placement unit


How do you write themes in PHP?

You can use Cascading Style Sheets (CSS) to create website themes for your PHP website.


What is a regular expression in PHP?

echo or print < both of which write text: <?php echo "TEXT"; print "TEXT"; ?>


Is there widget in php?

well, as such there is no Widget in php. You need to write your own widget program if you are interested to develop. You must be aware of wordpress built on php plateform and that uses widget extensively :)


How do you create a PHP script?

To create a PHP script all you have to do is create a new file, then save the file as "filename.php". It must have a .php file extension.After that open the file and put in the PHP tags like shown.Then you write your PHP script within those tags and upload to your web space and check it out.


Write down a PHP code to add a session variable?

The preferred way is to simply alter the session superglobal. <?php $_SESSION['variable'] = "value"; ?>


What PHP Codes?

if i got your question right, you mean "what are php tags?" your should write PHP codes between <?php ... ?> where ... should be replaced by codes that you need. But if you mean "what are php codes?": there are some default codes that you may find them on php.net, and the other part is codes (Functions or classes) that other programmers develops..