What are the advantages of using template engines like Smarty in PHP development?

Template engines like Smarty in PHP development offer several advantages, such as separating the presentation layer from the business logic, improving code organization and readability, enabling designers to work on templates without needing to know PHP, and providing caching mechanisms for better performance.

<?php
require_once('smarty/Smarty.class.php');

$smarty = new Smarty;

$smarty->assign('name', 'John Doe');
$smarty->display('index.tpl');
?>