explode() function breaks a string into an array. Each of the array elements is a substring of string formed by splitting it on boundaries formed by the string delimiter.

Here is the solution to above challenge;

Copy to Clipboard