Question: what is difference between explode and split in php?
Answer: Both are used to split a string into an array, but the difference is that split() uses pattern for splitting whereas explode() uses string. ... The split() function splits the string into an array using a regular expression and returns an array. The explode() function splits the string by string.