how to write php code in html file code example Example: inline php in html <body> Hello, today is <?php echo date('l, F jS, Y'); ?>. </body>