PHP Syntax

PHP Starts with <?php and End with ?> (OR) <script language="PHP"></script>

PHP file extension should be .php etc

PHP supports the HTML, Javascript, CSS, any other language like java etc.

New PHP file is created as syntax.php

To Run on Browser i.e http://localhost/syntax.php

//Here PHP code 


<h2>This is PHP Syntax page</h2>
                                    echo "Welcome to PHP";