Count the number of substring occurrences
mb_substr_count( string $haystack string $needle string $encoding null )
| || ||The string being checked.|
| || ||The string being found.|
| || ||Character encoding name to use. If it is omitted, internal character encoding is used.|
integerThe number of times the $needle substring occurs in the $haystack string.
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.