From 84fd583940a4967822cbd62981cca6778e4e7556 Mon Sep 17 00:00:00 2001 From: Ferenc Kovacs Date: Tue, 7 Jul 2015 16:20:58 +0000 Subject: [PATCH] document the second optional delimiters argument for ucwords git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337118 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/ucwords.xml | 55 ++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 2 deletions(-) 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 + + ]]>