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. +