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