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:
"Your script comes here!";
Let's see the example below :
<title>Welcome to PHP World</title>
echo "Hello World!!";
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.
Posted on: January 20, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles