Home / EG Comp Lab / PHP Syntax

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”]





About Utpal

I am third year student of computer engineering in L.D COLLEGE OF ENGINEERING,Ahmedabad.

Check Also

Game-Theoretic Pricing for Video Streaming in Mobile Networks

ABSTRACT Mobile phones are among the most popular consumer devices, and the recent developments of …

Leave a Reply

Be the First to Comment!

Notify of