CountCharacters
Less than 1 minute
CountCharacters
Count the number of characters in a string.
class CountCharactersMethods
run
public run(string $string, bool $includeWhitespace): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$string | string | the input string |
$includeWhitespace | bool | whether to include whitespace in the count |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000