API17

JString::substr

From Joomla! Documentation

Revision as of 17:17, 11 May 2013 by JoomlaWikiBot (talk | contribs) (→‎User contributed notes: moving preparation)

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.

Joomla 11.1 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

See also[edit]

Template:SeeAlso:JString::substr [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />