• Teach Your Self With
             w3htmlschool.com

PHP explode

The explode function split the string into sub-string(or array).
Example
Example Output

Syntax


explode(separator,string,limit)

Return Value


Returns an array of strings

Parameter


NameDescriptionRequired /Optional
separatorThe boundary string.
stringThe input string.
limitIf limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. If the limit parameter is negative, all components excep