slice
Returns the substring beginning at $start, and up to, but not including the index specified by $end. If $end is omitted, the function extracts the remaining string. If $end is negative, it is computed from the end of the string.
Description
static slice(int $start, int|null $end)
Parameters
-
int $start
Initial index from which to begin extraction. - int|null $end
Optional index at which to end extraction.
Return Value
static
The extracted substring.