Convert an array to a string by joining its elements with a glue string.
Source Code
$array = ['lastname', 'email', 'phone'];
$comma_separated = implode(",", $array);
echo $comma_separated; // lastname,email,phone
Convert an array to a string by joining its elements with a glue string.
$array = ['lastname', 'email', 'phone'];
$comma_separated = implode(",", $array);
echo $comma_separated; // lastname,email,phone