API17:JString::strspn
From Joomla! Documentation
JString::strspn
Description
UTF-8 aware alternative to strspn Find length of initial segment matching mask.
Template:Description:JString::strspn [Edit Descripton]
Synopsis
public static JString::strspn ($str, $mask, $start=NULL, $length=NULL)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $str | string | the haystack | |
| $mask | string | the mask | |
| $start | int | NULL | start optional |
| $length | int | NULL | length optional |
Returns
Defined in
libraries/joomla/utilities/string.php
Referenced by
See also
Template:SeeAlso:JString::strspn
Examples
<CodeExamplesForm />