how to create a php file for html code example
Example 1: inline php in html
<body>
Hello, today is <?php echo date('l, F jS, Y'); ?>.
</body>
Example 2: how to write php in script file
phpVars["value1"]
phpVars["value2"]
<body>
Hello, today is <?php echo date('l, F jS, Y'); ?>.
</body>
phpVars["value1"]
phpVars["value2"]