What is the recommended approach for including static (html) files in PHP, and how does it differ from including PHP files?

To include static (html) files in PHP, you can simply use the include or require functions. However, it's important to note that including static files in PHP is different from including PHP files because PHP will not execute any code within the static file. This can be useful for including HTML templates or other static content in your PHP scripts.

<?php
include 'header.html'; // Include a static HTML file
include 'footer.html'; // Include another static HTML file
?>