Description
string implode ( string glue, array pieces )
Returns a string containing a string representation of all the array elements in the same order, with the glue string between each element.
例子 1. implode() example
<?php
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);
echo $comma_separated; // lastname,email,phone
?>