upper

This is used to uppercase a variable.

Example 5-21. upper

<?php

$smarty
= new Smarty;
$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
$smarty->display('index.tpl');

?>

where index.tpl is:

{$articleTitle}
{$articleTitle|upper}

This will output:

If Strike isn't Settled Quickly it may Last a While.
IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.