$val = "I'm string"; For this type of string I am using the addslashes function, which convert string into like this:
"I\'m string" and store into the database. When I get all data from database in array of fields and passed array in
json_encode($arr); In response I get the string with a extra slash like this:
"I\\'m string" And I wanted to remove that extra slash which is added by json_encode. how I do that??
MYSQLI_orPDOAPI's and this problem dissappears and you dont need strip or add slashes anywhere