Easy Tutorial
❮ Func Xml Set Notation Decl Handler Func Filesystem Fstat ❯

PHP ucwords() Function

PHP String Reference Manual

Example

Convert the first character of each word to uppercase:


Definition and Usage

The ucwords() function converts the first character of each word in a string to uppercase.

Note: This function is binary-safe.

Related functions:


Syntax

Parameter Description
string Required. Specifies the string to convert.

Technical Details

Return Value: Returns the converted string.
PHP Version: 4+
--- ---

❮ Func Xml Set Notation Decl Handler Func Filesystem Fstat ❯