(PHP 3 >= 3.0.3, PHP 4, PHP 5)
str1の中で全て str2の中の文字からなる最初のセグメントの 長さを返します。
$var = strspn ("42 is the answer, what is the question ...", "1234567890");
strcspn() も参照ください。