answersLogoWhite

0


Best Answer

There are several different ways to output text on the screen in PHP two of the most common are echo and print.

echo "Hello World!";

print ("Hello World!");

Would both print ...

Hello World!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What PHP statement outputs text on the screen?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is php a binary file?

No, PHP is text file with .php extension.


What is a regular expression in PHP?

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


What program can read php file?

PHP files are plain text, so you can read them with your text editor or IDE of choice.


How do you get the data using GET method in PHP?

To get the GET method data in PHP is pretty simple to do, all you need to do is the following.First of all lets say the page we are on is index.php?type=1&page=10&word=hello


Why your IF Statement not working?

<?php $a = $_POST['name2']; if($a=='Hello'){ echo "VALUE IS HELLO";} else{ echo "VALUE WRONG";} ?> <form name="" method="POST"> <input type="text" name="name2" value="Hello"> </form> <?php ?>


How do you return a value in a PHP function?

Below is a simple example of how you could return a value in a PHP function. <?php function returnme($value) { return $value; } echo returnme('hello'); // outputs: hello ?>


How do you find the size of an array in PHP?

To find the size of an array in PHP you can either use the count() function or the sizeof() function as they will produce the same result. <?php $array = array(1, 2, 3, 4, 5, 6, 7); echo count($array); // outputs 7 echo sizeof($array); // outputs 7 ?>


What does the increment operator do in PHP?

The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>


How do you create a text editor in PHP?

Well it got nothing to do with PHP, you going to need JavaScript to do that :)


How do you check the length of a string in PHP?

It is fairly simple to check the length of a string in PHP. All you need to do is use the function strlen(). Below is an example of how it is used. <?php $my_text = "Hello"; echo strlen($my_text); // outputs 5 ?>


What is operator in php?

An operator merges two different values and outputs a new expression based on the inputted values.


How do you reverse a string in PHP?

A predefined function can reverse a string as shown below:echo strrev('pizza'); // outputs: azzip