PHP ucwords() string function PHP ucword() string function The PHP ucword() string function is used to converts uppercase the first letter of each word of a string.