Edit: Hadn’t read the entire thread yet and see this is already implemented…
That will take your array and convert it to a comma seperated string if you still need.
$array = array(‘lastname’, ‘email’, ‘phone’);
$comma_separated = implode(“,”, $array);
echo $comma_separated; // lastname,email,phone