fenom/docs/en/mods/upper.md

14 lines
324 B
Markdown
Raw Permalink Normal View History

2014-01-29 12:01:31 +04:00
Modifier upper
==============
2013-02-08 14:23:10 +04:00
2014-07-29 14:47:45 +04:00
Modifier is used to uppercase a variable or string. Has short alias `up`.
2013-02-09 10:59:08 +04:00
This is equivalent to the PHP [strtoupper()](http://docs.php.net/strtoupper) function.
```smarty
{var $name = "Bzick"}
2014-01-29 12:01:31 +04:00
{$name} outputs Bzick
{$name|upper} outputs BZICK
{$name|up} outputs BZICK too
2014-07-29 14:47:45 +04:00
```