I have an array, some elements are single string, final element is comma seperated string
Array (
[0] => text
[1] => text
[2] => text
[3] => text1, text2, text3
)
I want to join all elements into one comma seperated string. Neither explode nor join could manage this. How can I get a result like this:
array(text, text, text, text1, text2, text3)
You can use implode: