aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-upper.md
blob: 9240f42d6338b79c74e409ef2e660f9f40602ad9 (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
upper {#language.modifier.upper}
=====

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


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

       

Where template is:


    {$articleTitle}
    {$articleTitle|upper}

       

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`](#language.modifier.lower) and
[`capitalize`](#language.modifier.capitalize).