What is a common method for including multiple pages using a template in PHP?

When including multiple pages using a template in PHP, a common method is to use the `include` or `require` functions within a loop to dynamically include the desired pages. This allows for a modular and scalable approach to building web pages with a consistent layout.

<?php
$pages = ['header.php', 'content.php', 'footer.php'];

foreach($pages as $page) {
    include $page;
}
?>