add('content', 'Hello World!'); ?>In this example, we're adding a variable named 'content' to a template, and setting its value to 'Hello World!'. Package Library: The Template add method is commonly found in PHP template libraries, such as Smarty, Twig, and Blade.