php man page for ucwords

Query: ucwords

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UCWORDS(3)								 1								UCWORDS(3)

ucwords - Uppercase the first character of each word in a string

SYNOPSIS
string ucwords (string $str)
DESCRIPTION
Returns a string with the first character of each word in $str capitalized, if that character is alphabetic. The definition of a word is any string of characters that is immediately after a whitespace (These are: space, form-feed, newline, car- riage return, horizontal tab, and vertical tab).
PARAMETERS
o $str - The input string.
RETURN VALUES
Returns the modified string.
EXAMPLES
Example #1 ucwords(3) example <?php $foo = 'hello world!'; $foo = ucwords($foo); // Hello World! $bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! ?>
NOTES
Note This function is binary-safe.
SEE ALSO
strtoupper(3), strtolower(3), ucfirst(3), mb_convert_case(3). PHP Documentation Group UCWORDS(3)
Related Man Pages
ltrim(3) - php
mb_strtolower(3) - php
fdf_save_string(3) - php
classkit_method_rename(3) - php
mb_strtoupper(3) - php
Similar Topics in the Unix Linux Community
perl newbie: how to extract an unknown word from a string
Pulling the first and last character/number from a string.
Question About Getting Line Numbers in a File
Print a horizontal word vertically.
Perl - Title Case after apostrophe