JString::strspn
UTF-8 aware alternative to strspn Find length of initial segment matching mask
Signature
public function strspn(string
$str,
[string
$mask = null,
[integer
$start = null,
[integer
$length = null]]] )
Parameters
-
$str
- The haystack
-
$mask
- The mask
-
$start
- Start optional
-
$length
- Length optional
Returns
- integer