Description. string substr ( string $string , int $start [, int $length ] ). Returns the portion of string specified by the start and length parameters.
php.net