What is a function in PHP used to convert array to string, other than using JSON?
I know there is a function that directly does like JSON. I just don\'t remember.
Use the implode() function:
$array = array('lastname', 'email', 'phone'); $comma_separated = implode(",", $array); echo $comma_separated; // lastname,email,phone