Difference between revisions of "JString::substr"
From Joomla! Documentation
m (→User contributed notes: moving preparation) |
m (moving preparation) |
||
Line 41: | Line 41: | ||
* '''Defined''' on line 95 of libraries/joomla/utilities/string.php | * '''Defined''' on line 95 of libraries/joomla/utilities/string.php | ||
* '''Referenced by''' | * '''Referenced by''' | ||
− | ** [[JHtmlString::abridge | + | ** [[API17:JHtmlString::abridge|JHtmlString::abridge]] |
− | ** [[JHtmlList::genericordering | + | ** [[API17:JHtmlList::genericordering|JHtmlList::genericordering]] |
− | ** [[JHtmlString::truncate | + | ** [[API17:JHtmlString::truncate|JHtmlString::truncate]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JString::substr source code''' on [[jplatform:utilities/string.php#cl-87|BitBucket]] | * {{JVer|11.1}} '''JString::substr source code''' on [[jplatform:utilities/string.php#cl-87|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JString | + | * {{JVer|11.1}} Class [[API17:JString|JString]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] |
− | * [[JString::substr|Other versions of JString::substr]] | + | * [[API17:JString::substr|Other versions of JString::substr]] |
{{SeeAlso:JString::substr}} | {{SeeAlso:JString::substr}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> |
Revision as of 21:37, 11 May 2013
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::substr[edit]
Description[edit]
UTF-8 aware alternative to substr Return part of a string given character offset (and optionally length).
Template:Description:JString::substr [Edit Descripton]
public static function substr (
$str
$offset
$length=FALSE
)
Parameter | Type | Default | Description |
---|---|---|---|
$str | string | ||
$offset | integer | number of UTF-8 characters offset (from left) | |
$length | integer | FALSE | (optional) length in UTF-8 characters from offset |
- Returns mixed string or FALSE if failure
- Defined on line 95 of libraries/joomla/utilities/string.php
- Referenced by
See also[edit]
- JString::substr source code on BitBucket
- Class JString
- Subpackage Utilities
- Other versions of JString::substr
Template:SeeAlso:JString::substr [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />