From da7e1e866c3dabb1cfa1ef828584f82c858a2e43 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 21 May 2003 23:09:07 +0000 Subject: [PATCH] Added examples and various see also's git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128327 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../strings/functions/str-word-count.xml | 57 ++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/str-word-count.xml b/reference/strings/functions/str-word-count.xml index c5c4435cfb..cb4a0c6e07 100644 --- a/reference/strings/functions/str-word-count.xml +++ b/reference/strings/functions/str-word-count.xml @@ -1,5 +1,5 @@ - + str_word_count @@ -43,6 +43,61 @@ string containing alphabetic characters, which also may contain, but not start with "'" and "-" characters. + + + Example uses for <function>str_word_count</function> + + Hello + [1] => friend + [2] => you're + [3] => looking + [4] => good + [5] => today +) + +Array +( + [0] => Hello + [6] => friend + [14] => you're + [29] => looking + [46] => good + [51] => today +) + +6 + +*/ +?> +]]> + + + + + See also explode, + preg_split, + split, + count_chars, and + substr_count. +