upper

upper

This is used to uppercase a variable.

Example 5-21. upper

<?php

$smarty
->assign('articleTitle'"If Strike isn't Settled Quickly it may Last a While.");

?>

where template 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.

See also lower and capitalize.

© Copyright 2003-2014 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.