Function utf8_strspn
UTF-8 aware alternative to strspn Find length of initial segment matching mask Note: requires utf8_strlen and utf8_substr (if start, length are used)
Parameters summary
string |
$str |
|
mixed |
$mask |
|
mixed |
$start = NULL |
|
mixed |
$length = NULL |
Return value summary
integer
|