The explode() function is used to split a string. sometimes required to convert strings into PHP array. Split a String Conversion into php