+ 1
what does implode() function is used for?
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
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 )đ