2021-12-03 11:59:22 +01:00
|
|
|
lower {#language.modifier.lower}
|
|
|
|
|
=====
|
|
|
|
|
|
|
|
|
|
This is used to lowercase a variable. This is equivalent to the PHP
|
2023-02-03 17:54:00 +01:00
|
|
|
[`strtolower()`](https://www.php.net/strtolower) function.
|
2021-12-03 11:59:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<?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`](#language.modifier.upper) and
|
|
|
|
|
[`capitalize`](#language.modifier.capitalize).
|