Function

substr

Synopsis

substr(string, int, int ...): string

Area
Runtime\PS\Core\Strings\substrareas

Description

substr returns the part of $string from byte $offset for $length bytes; a negative $offset counts from the end and a negative $length stops that many bytes before it. mb_substr counts characters.

Usage

$value = substr($arguments);
$fn = substr(...);

See also