Hello World Program in PHP

By: Prem Tiwari | Last Updated: | In: PHP Tutorials

Have you just started with PHP or want to start with PHP, then this is the best place to learn. Below is the basic syntax of PHP programming language.

Basic PHP Syntax

Create a file and save it with .php extension in your htdocs(If you have installed XAMPP Server) OR www (If you have installed WAMP Servre) folder.

A PHP programs starts with . See the below basis syntax of PHP programming language.

PHP Hello World Program

You cna also execute the PHP code insde the HMTL and CSS code, see the below example:

Output of above program is