Twig
The flexible, fast, and securetemplate engine for PHP
upper
Found a typo or an error? Want to improve this document? Edit it.
Need support or have a technical question? Ask support on Stack Overflow.
The upper filter converts a value to uppercase:
1 2 3
{{ 'welcome'|upper }} {# outputs 'WELCOME' #}
Note
Internally, Twig uses the PHP mb_strtoupper function.