What potential issues can arise when using include() in PHP to load multiple text files into a webpage?

One potential issue that can arise when using include() in PHP to load multiple text files into a webpage is that it may lead to a cluttered and hard-to-maintain codebase. To solve this, you can create an array of file paths and loop through them to include each file dynamically.

<?php
$files = ['file1.txt', 'file2.txt', 'file3.txt'];

foreach ($files as $file) {
    include($file);
}
?>