1 Answers
explode() function is used to split a string into an array
on the other hand
implode function is used to join elements of an array with a string.
Example:
$text = “PHP is a general purpose programming language”;
print_r (explode(” “,$text));
$strarr = array(‘Ram’,’Kumar’,’Sharma’);
echo implode(” “,$strarr);
Your Answer