Related Functions

substr

PHP 4.0+

Extracts a portion of a string starting from a specified position with optional length control, returning the requested substring as a new string.

Description

The substr() Extracts a portion of a string starting from a specified position with optional length control, returning the requested substring as a new string.

Example