implode( ) function converts an array into a string by inserting a separator between each element
//string implode ( string separator, array pieces )
<?
$oz = "Lions and Tigers and Bears";
$oz_array = explode(" and ", $oz);
print_r($oz_array);
$exclams = implode("! ", $oz_array);
print_r($exclams);
?>
Related examples in the same category