aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-lower.md
blob: 90122e9e48963cd7206f417e5303fa2b91125f04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
lower {#language.modifier.lower}
=====

This is used to lowercase a variable. This is equivalent to the PHP
[`strtolower()`](&url.php-manual;strtolower) function.


    <?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).