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
get_class(3) - php
runkit_method_rename(3) - php
mb_strtolower(3) - php
fdf_save_string(3) - php
print(3) - php
Similar Topics in the Unix Linux Community
perl newbie: how to extract an unknown word from a string
newline character, space and tab after a string
Print a horizontal word vertically.
How can we get the character before and after a word in a string?
sed relacement of word after particular string in a file