• Teach Your Self With
             w3htmlschool.com

PHP Syntax

A PHP scripting block always starts with . A PHP scripting block can be placed anywhere in the document.
Example
Example Output
<'?PHP
print "This is  an example of using PHP Default Syntax";
?>

Script Syntax

<'script language="php">
print "This is an example of PHP script  delimiting     syntax";
<'/script>
Short Tag

<'?
print "this is PHP Short Tag Example";
?>
ASP-STYLE

<% 
print "this is PHP Short Tag Example";
%>