PHP tutorial for beginner Day2

PHP Tutorial for beginner- PHP Syntax Overview

In the previous post that is Day1 program, you learn what is php and Which thing is required before starting PHP language.And Now it is Day2 Program, where we will learn Basic Syntax of PHP language.

Please follow steps what we have defined:-

a>PHP syntax Script always Start with :-

and ends with:-

b>PHP code needs to be written in a block like:-

c>All statements (instructions) must end with semi-colon (;).

Example:-

Result:-

d>To write comments in PHP you will use // (for single comment) and /* */ (for multiple lines comment).

Example:-

e>The PHP code block can be placed in the head section or body section of the web page.

Example:-

Other Posts:-

<--PHP Tutorial day1                               PHP Tutorial day3–>