PHP implode() Function


implode : The implode() function returns a string from the elements of an array.


Syntax
implode(separator,array)


Example: implode() 


<?php
$arr = array("PHP","implode","explode" ,"string","functions");
$str = implode(",", $arr);
echo $str; 
?>


OutputPHP, implode, explode, string, functions.