(PHP 4, PHP 5, PHP 7)
Return part of a string
string substr ( string $string, int $start [, int $length ] )
Returns the portion of string specified by the start and length parameters.
Parameters:
string
The input string. Must be one character or longer.
start
If start is non-negative, the returned string will start at the start'th posit