ucFirst.php
Table of Contents
Functions
- ucFirst() : string
- Uppercases the first character of a string (multibyte-safe).
Functions
ucFirst()
Uppercases the first character of a string (multibyte-safe).
ucFirst(string $source) : string
Unlike the native ucfirst(), accented and multibyte first letters are handled correctly. The rest of the string is left untouched.
Parameters
- $source : string
-
The input string.
Tags
Return values
string —The string with its first character upper-cased.