mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-01 21:01:37 +01:00
569 B
569 B
lower
This is used to lowercase a variable. This is equivalent to the PHP
strtolower() function.
Basic usage
{$myVar|lower}
Examples
<?php
$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
Where template is:
{$articleTitle}
{$articleTitle|lower}
This will output:
Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung.
See also upper and
capitalize.