mb_substr_count
Count the number of substring occurrences
&reftitle.description;
intmb_substr_count
stringhaystack
stringneedle
stringencodingmb_internal_encoding()
Counts the number of times the
needle substring occurs in the
haystack string.
&reftitle.parameters;
haystack
The string being checked.
needle
The string being found.
encoding
&mbstring.encoding.parameter;
&reftitle.returnvalues;
The number of times the
needle substring occurs in the
haystack string.
&reftitle.examples;
mb_substr_count example
]]>
&reftitle.seealso;
mb_strpos
mb_substr
substr_count