← All built-ins / ucwords()
ucwords()
ucwords(string $s): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | input string |
Return value
The string with the first letter of every word uppercased.
Example
echo ucwords("holy php language");Holy Php Language