Name
explode
Synopsis
array explode(stringseparator
, stringstring
[, intlimit
])
Returns an array of substrings created by splitting
string
wherever
separator
is found. If supplied, a maximum
of limit
substrings will be returned, with
the last substring returned containing the remainder of the string. If
separator
is not found, returns the
original string.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.