Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
upper {#language.modifier.upper}
2
=====
3
 
4
This is used to uppercase a variable. This is equivalent to the PHP
5
[`strtoupper()`](&url.php-manual;strtoupper) function.
6
 
7
 
8
    <?php
9
    $smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
10
    ?>
11
 
12
 
13
 
14
Where template is:
15
 
16
 
17
    {$articleTitle}
18
    {$articleTitle|upper}
19
 
20
 
21
 
22
Will output:
23
 
24
 
25
    If Strike isn't Settled Quickly it may Last a While.
26
    IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.
27
 
28
 
29
 
30
See also [`lower`](#language.modifier.lower) and
31
[`capitalize`](#language.modifier.capitalize).