mb_substr_count
mb_substr_count — 部分文字列の出現回数を数える
説明
int mb_substr_count ( string haystack, string needle [, string encoding] )substr_count() は、文字列 haystack の中での部分文字列 needle の出現回数を返します。
encoding は、 needle や haystack に対する 文字エンコーディングを指定します。省略された場合は、 内部文字エンコーディングが使用されます。
例 1306. mb_substr_count() の例
<?php
echo mb_substr_count("これはてすとです。", "す"); // 2 を出力する
?>
substr_count()、 mb_strpos()、mb_substr() も参照ください。
Weblioに収録されているすべての辞書からmb_substr_countを検索する場合は、下記のリンクをクリックしてください。

- mb_substr_countのページへのリンク