answersLogoWhite

0

The correct way to write Hello World in PHP is?

Updated: 8/17/2019
User Avatar

Patcy070

Lvl 1
14y ago

Best Answer

echo("hello world");

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The correct way to write Hello World in PHP is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write hello world in PHP?

<?php echo "Hello world"?>


How do you run a PHP script?

You run a PHP code using the following code.The code above will display the text Hello world in a HTML document.


How many concatenation operators use in PHP?

There is one concatenation in PHP it is the period ".". So you could do something like:It would print out hello world!


What are the PHP tags?

There are no PHP tags. Unlike HTML, PHP is not Markup language. They use scripts. An example would be <?php echo "Hello, World!"; ?>


What PHP statement outputs text on the screen?

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!


Hello world program?

A "Hello world" program is usually the very first program you write when learning a new programming language, it simply prints out the text "Hello World". Below are a few examples: PHP: echo "Hello World"; _____________________________________ JavaScript: document.write("Hello World"); _____________________________________ Visual Basic: Module Hello Sub Main() MsgBox("Hello, World!") ' Display message on computer screen. End Sub End Module


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 ?>


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


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 display message in php?

There are various ways of doing it. Here are a few examples: printf("Hello world!"); echo "Hello world!"; print "Hello world!"; If you are looking to offer a pop-up message (a separate window with a button that the user must click to acknowledge), you would have to do it with Javascript instead.