In this tutorial we will learn Hello World Program In PHP. In last tutorial we learnt how to install and start virtual server in PC to run PHP code. Here we will learn basic PHP Syntax and learn how we can write Hello World program in PHP.
First of all we will create a folder in htdocs folder to save our PHP files. I am creating folder named PHPTutorials. You can see it in image given below.
Basic PHP code Syntax:To keep PHP code separate from HTML and CSS we have to write PHP code in Canonical PHP tags () mean we will write whole PHP code inside these tags. Now we will see an Example of Hello World program.