smarty_modifier_capitalize()
smarty_modifier_capitalize(string $string, boolean $uc_digits = false, boolean $lc_rest = false) : string
Smarty capitalize modifier plugin Type: modifier<br> Name: capitalize<br> Purpose: capitalize words in the string {@internal {$string|capitalize:true:true} is the fastest option for MBString enabled systems }}
Parameters
string | $string | string to capitalize |
boolean | $uc_digits | also capitalize "x123" to "X123" |
boolean | $lc_rest | capitalize first letters, lowercase all following letters "aAa" to "Aaa" |
Returns
string —capitalized string