Its syntax is: string implode (string delimiter, array pieces) <? $ohio_cities = array("C", "Y", "C", "C"); $city_string = implode("|", $ohio_cities); print $city_string; ?>