About Lesson
The syntax is a way to a representation of the PHP script. It gives the basic idea to specify the code format.
There are three ways to start PHP
For example, a echo
statement is used to print the given string on the web page.
Canonical PHP tags
<?php echo “Welcome to PHP language”; ?>
Short-open (SGML-style) tags
<?
echo “Welcome to PHP language”;
?>
HTML script tags
<script language="PHP">
echo “Welcome to PHP language”;
</script>