(PHP 4 >= 4.3.0, PHP 5, PHP 7)
mb_substr_count — ͳ���ַ������ֵĴ���
$haystack
, string $needle
[, string $encoding = mb_internal_encoding()
] ) : int
ͳ�����ַ��� needle �������ַ��� haystack �еĴ�����
haystackҪ�����ַ�����
needle�����ҵ��ַ�����
encodingencoding
����Ϊ�ַ����롣���ʡ�ԣ���ʹ���ڲ��ַ����롣
���ַ��� needle �������ַ��� haystack �еĴ�����
Example #1 mb_substr_count() ����
<?php
echo mb_substr_count("This is a test", "is"); // ��� 2
?>