ez.no / exponential / documentation / reference / template operators / strings / upfirst
$string|upfirst()
string.
This operator simply converts the first character of the input string to uppercase. The very first letter becomes a capital letter. The modified version of the input string is returned.
{"good bye cruel world!"|upfirst}
returns the string "Good bye cruel world!".
Comments