(PHP 3>= 3.0.3, PHP 4 >= 4.0.0)
int strspn (string str1, string str2)
int strspn
str2 내의 어떤 문자도 포함하는 str1의 초기 세그먼트의 길이를 반환한다.
strspn ("42 is the answer, what is the question ...", "1234567890");
은 결과로 2를 반환한다.
strcspn()을 참고하라.