(PHP3 >= 3.0.3, PHP4 )
int strcspn (string str1, string str2)
int strcspn
str1においてstr2の文字が どれも含まれてない最初のセグメントの長さを返します。
strspn() も参照下さい。