What is the best practice for using include in PHP when transitioning from frames?

When transitioning from frames to include in PHP, it is best practice to replace the frame tags with include statements in the main PHP file. This will allow for better organization of code and easier maintenance in the future. Additionally, using include will help improve the overall performance of the website by reducing redundant code.

<?php
include 'header.php';
include 'content.php';
include 'footer.php';
?>