Difference between revisions of "JString::strrpos"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JString::strrpos|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JString::strrpos|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function strrpos ( |
+ | $str | ||
+ | $search | ||
+ | $offset=false | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 35: | Line 38: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed Number of characters before the last match or FALSE on failure | |
− | mixed Number of characters before the last match or FALSE on failure | + | * '''Defined''' on line 79 of libraries/joomla/utilities/string.php |
− | + | * '''Referenced by''' | |
− | libraries/joomla/utilities/string.php | + | ** [[JHtmlString::truncate/11.1|JHtmlString::truncate]] |
− | * | ||
− | |||
− | * [[JHtmlString::truncate/11.1|JHtmlString::truncate]] | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JString::strrpos source code''' on [[jplatform:utilities/string.php#cl-71|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JString/11.1|JString]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
+ | * [[JString::strrpos|Other versions of JString::strrpos]] | ||
+ | {{SeeAlso:JString::strrpos}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JString::strrpos|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JString::strrpos|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 57: | Line 59: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JString]][[Category:JString::strrpos]]</noinclude> | <noinclude>[[Category:JString]][[Category:JString::strrpos]]</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::strrpos[edit]
Description[edit]
UTF-8 aware alternative to strrpos Finds position of last occurrence of a string.
Template:Description:JString::strrpos [Edit Descripton]
public static function strrpos (
$str
$search
$offset=false
)
Parameter | Type | Default | Description |
---|---|---|---|
$str | $str | ||
$search | $search | ||
$offset | false |
- Returns mixed Number of characters before the last match or FALSE on failure
- Defined on line 79 of libraries/joomla/utilities/string.php
- Referenced by
See also[edit]
- JString::strrpos source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::strrpos
Template:SeeAlso:JString::strrpos [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />