PHP Syntax


A PHP script is executed on the server, and the plain HTML result is sent back to the browser.

Basic PHP Syntax

A PHP script can be placed anywhere in the document.

A PHP script start with <?php and end with ?>

[message_box color=”yellow”]


//php code here



The default file extension for php file is”.php”.

A PHP file normally contains HTML and some PHP scripting code.

[message_box title=”Example” color=”yellow”]





echo “Hello Engineers!!!!”







[sam id=”4″ codes=”true”]





Previous articlePHP Introduction
Next articlePHP Variables
I am third year student of computer engineering in L.D COLLEGE OF ENGINEERING,Ahmedabad.

Leave a Reply

Please Login to comment
Notify of