What is the best practice for executing a PHP file within a table of another PHP file?

When executing a PHP file within a table of another PHP file, it is best practice to use the include or require function to include the file within the table structure. This allows for better organization of code and ensures that the included file is executed properly within the context of the table.

<table>
    <tr>
        <td>
            <?php include 'file_to_include.php'; ?>
        </td>
    </tr>
</table>