Actions

API17

Difference between revisions of "JString::substr"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (moving preparation)
 
(2 intermediate revisions by one user not shown)
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/11.1|JHtmlString::abridge]]
+
** [[API17:JHtmlString::abridge|JHtmlString::abridge]]
** [[JHtmlList::genericordering/11.1|JHtmlList::genericordering]]
+
** [[API17:JHtmlList::genericordering|JHtmlList::genericordering]]
** [[JHtmlString::truncate/11.1|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/11.1|JString]]
+
* {{JVer|11.1}} Class [[API17:JString|JString]]
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|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%;">
Line 64: Line 64:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JString]][[Category:JString::substr]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 20:37, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JString::substr

Description

UTF-8 aware alternative to substr Return part of a string given character offset (and optionally length).

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

See also

SeeAlso:JString::substr [Edit See Also]

User contributed notes

<CodeExamplesForm />