Home Tutorial Php Phpbeginning PHP Hello World

 
 

PHP Hello World
Posted on: January 20, 2010 at 12:00 AM
PHP stands for Hypertext preprocessor. PHP has one of the most popular language among the developers. It is a server side scripting language, PHP supports most of the server such as MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL and soon.

PHP Hello World Example 

PHP stands for Hypertext preprocessor. PHP has one of the most popular language among the developers. It is a server side scripting language, PHP supports most of the server such as MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL and soon.

PHP is used to create dynamic and interactive website. It is absolutely free to download and it is an open source application or software.

Like other languages PHP also has its own basic "Hello World" example. Whenever you start learning any language the first program you do is the Hello world.

Syntax for PHP Hello World Program:

<?php

  "Your script comes here!";

?>

Let's see the example below :

<html>

<head>

<title>Welcome to PHP World</title>

</head>

<body>

<?php

echo "Hello World!!";

?>

</body>

</html>

The output of the above example is : Hello World!

In the above example, we just print a simple string with the help of PHP syntax. PHP starts with the <?php ends with the ?> and to display the Hello World string on the browser, we used echo statement.

Related Tags for PHP Hello World :


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.