Menu Riverview Church

UCWORDS

Uppercase the first character of each word in a string

SYNTAX

ucwords ( string $str [, string $delimiters = " \t\r\n\f\v" ] ) : string

PARAMETERS

str

The input string.

delimiters

The optional delimiters contains the word separator characters.

"\t" ASCII 9 (0x09) a tab
"\n" ASCII 10 (0x0A) a new line (line feed)
"\v" ASCII 11 (0x0B) a vertical tab
"\f" ASCII 12 (0x0C) a form feed
"\r" ASCII 13 (0x0D) a carriage return
" " ASCII 32 (0x20) an ordinary space

RETURN

Returns the modified string.

EXAMPLES

1

Hello World!

2

Hello|World!

3

Case    Case
Case Case Case Case Case

4

Case#Case%Case&Case,Case'Case|Case

5

Case    Case
Case Case Case Case Case#Case%Case&Case,Case'Case|Case

PHP