public wordCount ( integer $format ) : mixed | |
||
$format | integer | Specify the return format: 0 - return number of words 1 - return an ArrayObject containing all the words found inside the string 2 - returns an ArrayObject, where the key is the numeric position of the word inside the string and the value is the actual word itself |
return | mixed | |
An ArrayObject or integer, based on the wanted $format, with the stats about the words in the string. |