Blast use
$array_items = ['one','two','three','four']; $string_from_array = implode(',', $array_items); echo $string_from_array;
Using join (alias implode)
$array_items = ['one','two','three','four']; $string_from_array = join(',', $array_items); echo $string_from_array;
source share