(PHP 4 )
substr_count() は、文字列 haystack の中での副文字列 needle の出現回数を返します。
例 1 substr_count() の例
print substr_count("This is a test", "is"); // 2を出力する