ң

strspn

(PHP 3>= 3.0.3, PHP 4)

strspn - .

int strspn (string str1, string str2)

str1 , str2 .

:

$var = strspn("42 is the answer, what is the question ...", "1234567890");

2 $var, "42" , "1234567890".

. strcspn() .


ң
strrpos strstr