Home Tutorial Php Phpbeginning PHP Hello World

 
 

Share on Google+Share on Google+
PHP Hello World
Posted on: January 20, 2010 at 12:00 AM
Advertisement
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.

Advertisement

Related Tags for PHP Hello World :


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 20, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com