Function mb_substr_count
Count the number of substring occurrences
Package: Cake\I18n
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/I18n/Multibyte.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at Cake/I18n/Multibyte.php
mb_substr_count( string $haystack , string $needle , string $encoding = null )
Parameters summary
string |
$haystack |
The string being checked. |
string |
$needle |
The string being found. |
string |
$encoding = null |
Character encoding name to use. If it is omitted, internal character encoding is used. |
Returns
-
integer
The number of times the $needle substring occurs in the $haystack string.