PHP function ucwords()

Availability in PHP 4.0

Capitalizes the first character of each word in a string.

Parameters

Parameter Data type Default value Note
$str string not String being processed.
$delimiters string "

Return values

string

A modified string.

Other resources

Official ucwords documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.