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

Independent Directed Acyclic Graphs for Resilient Multipath Routing

ABSTRACT: In order to achieve resilient multipath routing, we introduce the concept of independent directed …

Leave a Reply

Be the First to Comment!

Notify of