mb_substr_count Count the number of substring occurrences Description intmb_substr_count stringhaystack stringneedle stringencoding mb_substr_count returns the number of times the needle substring occurs in the haystack string. encoding specifies the encoding for needle and haystack. If omitted, internal character encoding is used. <function>mb_substr_count</function> example ]]> See also substr_count, mb_strpos, mb_substr.