00001 <?php 00017 function mixed_html_and_php_page() 00018 { 00019 ?> 00020 <!-- Best way to use PHP is to use combination of PHP and HTML together --> 00021 <html> 00022 <head> 00023 <title>Pure HTML type PHP</title> 00024 </head> 00025 <body> 00026 <h3>Mixing PHP and HTML</h3> 00027 <ul> 00028 <li><a href="index.php">Pure HTML type PHP</a></li> 00029 <li><a href='01-pure_php.php'>Pure PHP</a></li> 00030 <li><a href='02-mixed_html_and_php.php'>Mixed HTML and PHP</a></li> 00031 </ul> 00032 <?php echo "This page was generated on " . date('d F Y') . ' at ' . date('h:i:s a') . "\n"; ?> 00033 </body> 00034 </html> 00035 <?php 00036 } 00037 00038 mixed_html_and_php_page(); 00039 00040 ?>