CountWords
Less than 1 minute
CountWords
Count the number of words in a string.
class CountWordsMethods
run
public run(string $string): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$string | string | the input string |
Generated by Hazaar API Doc Generator on Thu, 22 Oct 2026 05:05:28 +0000