- 3.6. Function reference
3.6.9. countSubstring() - 3.6.8. countChars()
« Previous - 3.6.10. countWords()
Next »
3.6.9. countSubstring()
| Reference | int countSubstring(mixed $haystack, string $needle) |
|---|---|
| Versions | since 2.0.5 |
Counts the occurences of $needle in $haystack. The haystack can be either a string or a container where the function counts the occurences in all the container elements.
- 3.6.9. countSubstring()
3.6. Function reference - « Previous
3.6.8. countChars() - Next »
3.6.10. countWords()