PHP Syntax

PHP code write within php tag or php syntax and  and php code run only php file

<?php

// here your php code

?>

Php code to print message

Example

Output

without php syntax php code not run

66

Br is html tag use to line break . if you want to use html tag inside php code to use double or single quote out side the tag

Syntax to use html tag inside php code

You can use all html tag inside php with echo keyword

<?php

echo "<h1> this is heading tag </h1>";

?>

NOTE :If you write PHP code without syntax then web server read as simple text form

You you forget to use semicolon php through syntax error