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