So I have this MySQL database and a table and in the rows there a lot of \",\" in them, and I wish when they are output on the screen with PHP to be switched to \"\" inste
Use str_getcsv() to make sure the escaped commas are processed correctly.
str_getcsv()
Code:
$input = "hello,no,thanks"; $array = str_getcsv($input); $result = implode("\n",$array);
Output
hello no thanks