How can using an array to manage included files in PHP improve code readability and maintainability?

Using an array to manage included files in PHP can improve code readability and maintainability by centralizing the list of included files in one place. This makes it easier to see which files are being included and allows for easier modification if new files need to be added or removed. Additionally, using an array can help prevent duplicate includes and ensure that files are included in the correct order.

$included_files = [
    'file1.php',
    'file2.php',
    'file3.php',
];

foreach ($included_files as $file) {
    include_once($file);
}