How can template systems in PHP improve the consistency and efficiency of website design and content management?

Template systems in PHP can improve the consistency and efficiency of website design and content management by allowing developers to separate the presentation layer from the business logic. This separation enables easier maintenance and updates to the design without affecting the underlying code. Additionally, templates can be reused across multiple pages, promoting a consistent look and feel throughout the website.

<?php
// Example of using a template system in PHP
$template = 'template.php';

// Include the template file
include($template);
?>