Are there any potential performance issues when using include() to include HTML code in PHP files?

When using include() to include HTML code in PHP files, there can be potential performance issues if the included HTML file is large or if include() is called multiple times. This can slow down the rendering of the page. To solve this issue, you can use output buffering to capture the output of the included HTML file and then include it in the main file.

<?php
ob_start();
include 'your_html_file.php';
$html = ob_get_clean();
echo $html;
?>