(PHP 3 = 3.0.3, PHP 4) str1 の中で全て str2 の中の文字からなる最初のセグメントの 長さを返します。 strcspn() も参照下さい。