vendor/smarty/smarty/libs/pluginsmodifier.capitalize.php

Smarty plugin

Functions

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

smarty_mod_cap_mbconvert_cb()

smarty_mod_cap_mbconvert_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_mbconvert2_cb()

smarty_mod_cap_mbconvert2_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_ucfirst_cb()

smarty_mod_cap_ucfirst_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_ucfirst2_cb()

smarty_mod_cap_ucfirst2_cb(  $matches) 

Parameters

$matches