UTF-8 aware alternative to ucfirst Make a string's first character uppercase or all words' first character uppercase
Signature
public function ucfirst(string
$str,
[string
$delimiter = null,
[string
$newDelimiter = null]] )
Parameters
$str
String to be processed
$delimiter
The words delimiter (null means do not split the string)
$newDelimiter
The new words delimiter (null means equal to $delimiter)
Returns
string
If $delimiter is null, return the string with first character as upper case (if applicable) else consider the string of words separated by the delimiter, apply the ucfirst to each words
and return the string with the new delimiter