substr

substr

(PHP 4, PHP 5, PHP 7)

substrReturn part of a string

Description

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