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.
You are looking for serialize(). Here is an example:
$array = array('foo', 'bar'); //Array to String $string = serialize($array); //String to array $array = unserialize($string);