answersLogoWhite

0

How do you output a star using PHP?

Updated: 9/15/2023
User Avatar

Wiki User

15y ago

Best Answer

type this in a file save it as something.php and then run it

<?php

echo '*';

?>

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you output a star using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you preview PHP source output?

The only true form of previewing PHP source output is to run the PHP script in question.


How can you embed a Java program in PHP webpage?

In the output stream (i.e. using echo), output an "embed" tag (or if using older HTML, the "applet" tag). Note that the Java will run on the client, not on the server, meaning that PHP variables, etc, will not be available to it.


Why does PHP output number 1 when its not called for?

in PHP true is 1 too.


How do you embed PHP code in C code?

PHP and C are two different programming languages that cannot directly interact with eachother. You can have a program made with C call a PHP script, using its output (an indirect interaction), but there's no way to "embed" PHP into C code.


In PHP the only way to output text is with echo.?

1


How do you use Zlib output compression on select files in PHP?

I also post it at: http://php.webmasterfund.com/devarchived/532/198532-zlib-output-compression-on-select-files.html Is there a way to disable zlib output compression on select files? The problem I am having is IE won't load my css files when I turn on zlib.output_compression (since I'm using php to dynamically create them). What could I do to make php only compress .php files and leave the .css ones alone? thanks Post here or post at php.webmasterfund.com, don't email. If you feel you have to mail, revert my....


Where does PHP used?

PHP is a Server side scripting language used for web development.The programs in php will be run on the server and only the output is sent to the internet browser.


Does android supports PHP?

It supports websites made on php but not coding in php. There are workarounds for coding in PHP using Android.


How can you run PHP files?

Use the 'include()' in your pages. Eg. include(link.php); ?&gt; Normally PHP files are meant to be run through a web server which serves on a browser. What is outputted is the HTML of the page along with any information that is generated by php depending on the code inside the page. If you would like to run the PHP code from the command line you can using the php executable. If you are on a windows machine you can do the following: c:\php&gt;php c:\websites\webroot\filename.php This will output the HTML that the PHP generates after being parse by PHP. You can also do this on Linux as follows: $-&gt;php /path/to/file.php


How do you get round value in php?

use the round function. For eg: &lt;?php $value1 = 15.55; echo round($value1, 0); // Will output 16 $value2 = 20.666666666; echo round($value2, 2); // Will output 20.67 ?&gt;


Why can't you run PHP from the command line?

There is no problems with running php from the command line be it unix or windows. However the output of the command will be to stdout in the form of HTML text output. This HTML output is infact what is displayed with formatting and graphics by a web browser. In addition php run by the webbrowser and from the command line maybe at different user privileges and display differently.


How can I find the biggest integer my computer can handle using PHP?

You may use the following code to see how far you can push your computer via storing integers; the biggest integer allowed in PHP actually depends on the system PHP is running on, and how big of an integer it allows in its memory. It's advised that, if you really want to do this, that you turn off PHP output limiting, so then you don't get an exhaustion error. &lt;?php for ($i = 0; TRUE; $i++) { echo $i; } ?&gt;