Computer Science, asked by anindyaadhikari13, 4 months ago

PHP code to display Hello World on the screen.. ​

Answers

Answered by Anonymous
0

Answer:

php // Declare the variable 'string' and assign it a value. // The <br> is the HTML equivalent to a new line. $string = 'Hello World! <br>'; // You can echo the variable, similar to the way you would echo a string. echo $string; // You could also use print.

Explanation:

hope my answer helps you.

Answered by KnowledgeForSuccess
4

"Hello World." is the first program most beginning programmers will learn to write in any given language. Here is an example of how to print "Hello World!" in PHP.

CODE:

<?php

echo "Hello World!";

echo "PHP is so easy!";

?>

OUTPUT:

Hello World!

PHP is so easy!

Hope it helps you

Similar questions