PHP Introduction Syntax and First Example

Her we will provide Introduction of PHP.

PHP Introduction
Fig: PHP Introduction

PHP is short form of Hypertext Preprocessor.

PHP was Created in 1994 by Rasmus Lerdorf

To start with PHP one should need few things that are as follows:
• basic knowledge of programming / scripting. 

PHP Syntax:

Save your file by naming the file of “.php” extension.

PHP in html can be used inside <?php ?> php tag.

The simple starting example for PHP we can use as:
As above seen php script is placed in side <?php and ?>

The php code can insert any where in HTML Document.

Our First php example code is below.

php hello world code is below.


Hello World

We can also use html in PHP like embeddin HTML tags in PHP as below

In echo a <br/> HTML tag is used.