ThinkPHP/Library/Vendor/Smarty/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
Name: capitalize
Purpose: capitalize words in the string

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