Actions

API17

Difference between revisions of "JString::substr"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 38: Line 38:
 
mixed string or FALSE if failure
 
mixed string or FALSE if failure
 
===Defined in===
 
===Defined in===
libraries/joomla/utilities/string.php
+
libraries/joomla/utilities/string.php (line 99)
 +
* see source code in [[jplatform:utilities/string.php#cl-99|BitBucket]]
 
===Referenced by===
 
===Referenced by===
* [[JHtmlString/abridge/11.1|JHtmlString::abridge]]
+
* [[JHtmlString::abridge/11.1|JHtmlString::abridge]]
* [[JHtmlList/genericordering/11.1|JHtmlList::genericordering]]
+
* [[JHtmlList::genericordering/11.1|JHtmlList::genericordering]]
* [[JHtmlString/truncate/11.1|JHtmlString::truncate]]
+
* [[JHtmlString::truncate/11.1|JHtmlString::truncate]]
 
===See also===
 
===See also===
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">

Revision as of 21:20, 23 April 2011

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]

Synopsis

public static JString::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 in

libraries/joomla/utilities/string.php (line 99)

Referenced by

See also

[Edit See Also]

SeeAlso:JString::substr

Examples

<CodeExamplesForm />