explode

explode

(PHP 4, PHP 5, PHP 7)

explodeSplit a string by string

Description

array explode ( string $delimiter , string $string [, int $limit = PHP_INT_MAX ] )

Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.

Parameters

delimiter

The boundary string.

string