WireTextTools::substrCount()
Count the number of substring occurrences
Usage
$int = $wireTextTools->substrCount(string $haystack, string $needle);
Arguments
Name | Type(s) | Description |
---|---|---|
$haystack | string | |
$needle | string |
Return value
int
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.251