If I implode an array $arr = ["Hello my, name is Steve", "How are you?"] to string to insert to MySQL database like so: $data = implode(',',$arr);, when I try to retrieve those values and explode it back into array: $arr2 = explode(',',$data); it returns : ["Hello my", "name is Steve", "How are you?"]
How do I get it to ignore the comma thats already in between quotes and explode as:
["Hello my, name is Steve", "How are you?"]
||for the imploding/exploding character, so you don't change the user input. But I agree with Nigel, using json would be a lot easier.