Makes a string of an array.
This function is the reverse of explode() and creates a string where each element of the array is separated with the separator.
<?php
$array1 = array("apple", "banana", "pear");
print implode(", ", $array1);
?>
apple, banana, pear
An array is converted to a comma separated string.