Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

substr_count

(PHP 4 )

substr_count -- 副文字列の出現関数を数える

説明

int substr_count ( string haystrack, string needle)

substr_count()は、文字列 haystackの中での副文字列 needleの出現回数を返します。

例 1substr_count()の例

print substr_count("This is a test", "is"); // 2を出力する