+ 1

what does implode() function is used for?

8th Aug 2016, 8:20 AM
zaheer
zaheer - avatar
2 Answers
0
the implode function is used to convert array values into single string. $arr = array("apple","orange","banana"); $string = implode(":",$arr); echo $string; output: >> apple:orange:banana
8th Aug 2016, 3:39 PM
Amar Agrawal
Amar Agrawal - avatar
0
And explode means the exact opposite to the implode , what explode does is it explode some characters with user defined any kind of variables such as ' ' , or any other characters . (Sorry it's out of topic )😃
10th Aug 2016, 3:54 AM
Sajen "The Empathy"
Sajen "The Empathy" - avatar