What are some best practices for optimizing the loading time of a webpage that includes multiple PHP files?

When a webpage includes multiple PHP files, it can slow down the loading time due to the overhead of including and processing each file separately. One way to optimize the loading time is to combine multiple PHP files into a single file to reduce the number of HTTP requests and improve overall performance.

// Combine multiple PHP files into a single file for optimized loading time
ob_start();
include 'file1.php';
include 'file2.php';
include 'file3.php';
$output = ob_get_clean();
echo $output;