upper
The upper
filter converts a value to uppercase:
1 2 3
{{ 'welcome'|upper }}
{# outputs 'WELCOME' #}
Note
Internally, Twig uses the PHP mb_strtoupper function.
upper
The upper
filter converts a value to uppercase:
1 2 3
{{ 'welcome'|upper }}
{# outputs 'WELCOME' #}
Note
Internally, Twig uses the PHP mb_strtoupper function.