JString::substr
UTF-8 aware alternative to substr Return part of a string given character offset (and optionally length)
Signature
public function substr(string
$str,
[integer
$offset = false,
[integer
$length = false]] )
Parameters
-
$str
- String being processed
-
$offset
- Number of UTF-8 characters offset (from left)
-
$length
- Optional length in UTF-8 characters from offset
Returns
- mixed
- string or FALSE if failure