PHP explode() function is often used to split a string into an array by a specified string.
Syntax
Parameter | Description |
---|---|
delimiter : | Required parameter. The boundary string. |
str : | Required parameter. The input string. |
limit : | Required parameter. The number of array elements to be return.
|
Return Value : | Returns an string array splitted with delimiter. |