ucWords.php
Table of Contents
Functions
- ucWords() : string
- Uppercases the first letter of each word in a string (multibyte-safe).
Functions
ucWords()
Uppercases the first letter of each word in a string (multibyte-safe).
ucWords(string $source) : string
A word starts at any letter that is not preceded by a letter or a digit, so words separated by spaces, punctuation or symbols are all handled. The rest of each word is left untouched.
Parameters
- $source : string
-
The input string.
Tags
Return values
string —The string with the first letter of each word upper-cased.