What is the difference between a template system and a content management system in PHP?

A template system in PHP is used to separate the presentation layer from the business logic by allowing developers to create reusable templates for displaying data. On the other hand, a content management system in PHP is a software application that allows users to create, manage, and publish digital content on the web without requiring technical knowledge. While a template system focuses on the design and layout of a website, a content management system provides a complete solution for content creation and management.

// Example of using a template system in PHP
<?php
$template = 'Hello, {name}!';
$data = ['name' => 'John Doe'];

echo strtr($template, $data);
?>