Actions

API17

JString::substr

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

Description

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


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


User contributed notes

Code Examples


Advertisement