Smarty capitalize modifier plugin Type: modifier Name: capitalize 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 = false |
also capitalize "x123" to "X123" |
# |
boolean
|
$lc_rest = false |
capitalize first letters, lowercase all following letters "aAa" to "Aaa" |
# |
| Returns | |
|---|---|
string
|
capitalized string |