Difference between revisions of "JString::strspn"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::strspn|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::strspn|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function strspn ( |
+ | $str | ||
+ | $mask | ||
+ | $start=NULL | ||
+ | $length=NULL | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 37: | Line 41: | ||
|int | |int | ||
|NULL | |NULL | ||
− | |length optional | + | |length optional |
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' int | |
− | + | * '''Defined''' on line 351 of libraries/joomla/utilities/string.php | |
− | |||
− | libraries/joomla/utilities/string.php | ||
− | |||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JString::strspn source code''' on [[jplatform:utilities/string.php#cl-343|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
+ | * [[JString::strspn|Other versions of JString::strspn]] | ||
+ | {{SeeAlso:JString::strspn}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::strspn|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::strspn|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 61: | Line 63: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::strspn]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::strspn]]</noinclude> |
Revision as of 21:44, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JString::strspn[edit]
Description[edit]
UTF-8 aware alternative to strspn Find length of initial segment matching mask.
Template:Description:JString::strspn [Edit Descripton]
public static function 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 int
- Defined on line 351 of libraries/joomla/utilities/string.php
See also[edit]
- JString::strspn source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::strspn
Template:SeeAlso:JString::strspn [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />