What is the difference between including a PHP file and an HTML file in a PHP script?

When including a PHP file in a PHP script, the included file is processed by the PHP interpreter and can contain PHP code. On the other hand, when including an HTML file in a PHP script, the HTML code is simply inserted into the output without being processed by the PHP interpreter. This means that PHP files can contain dynamic content and logic, while HTML files are static and do not allow for dynamic functionality.

// Including a PHP file
include 'file.php';

// Including an HTML file
include 'file.html';