diff --git a/reference/strings/functions/ucwords.xml b/reference/strings/functions/ucwords.xml index 1813461b26..363c01d401 100644 --- a/reference/strings/functions/ucwords.xml +++ b/reference/strings/functions/ucwords.xml @@ -11,6 +11,9 @@ stringucwords stringstr + + stringdelimiters" \t\r\n\f\v" + Returns a string with the first character of each word in @@ -18,8 +21,8 @@ The definition of a word is any string of characters that is immediately - after a whitespace (These are: space, form-feed, newline, carriage return, - horizontal tab, and vertical tab). + after any character listed in the delimiters parameter + (By default these are: space, form-feed, newline, carriage return, horizontal tab, and vertical tab). @@ -35,6 +38,14 @@ + + delimiters + + + The optional delimiters contains the word separator characters. + + + @@ -46,6 +57,30 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.4.32, 5.5.16 + + Added the delimiters parameter. + + + + + + + + &reftitle.examples; @@ -61,6 +96,22 @@ $bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! ?> +]]> + + + + + + + <function>ucwords</function> example with custom delimiter + + ]]>