1Basic PHP Syntax
2A PHP script can be placed anywhere in the document.
3
4A PHP script starts with <?php and ends with ?>:
5
6<?php
7// PHP code goes here
8?>
9The default file extension for PHP files is ".php".
10
11A PHP file normally contains HTML tags, and some PHP scripting code.
12
13Example
14<!DOCTYPE html>
15<html>
16<body>
17
18<h1>Php in html</h1>
19
20<?php
21echo "Hello World!";
22?>
23
24</body>
25</html>
1//Display html code in php
2<?php
3echo'<form action="StorePage.php" method="post">';
4?>