Smarty Manual
Prev | Chapter 5. Variable Modifiers | Next

# lower

This is used to lowercase a variable.

Example 5-12. lower
`<?php $smarty = new Smarty; $smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); $smarty->display('index.tpl'); ?>`
Where index.tpl is:
    {$articleTitle}
    {$articleTitle|lower}
This will output:
    Two Convicts Evade Noose, Jury Hung.
    two convicts evade noose, jury hung.

Prev | Home | Next
indent | Up | nl2br