Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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