I have an array of product details, in the product_description string I want to escape some special characters such as: " , \ ..etc but I don't know what should I write exactly to do so, what I did was:
json_encode($array[ProductData][Product_description]);
but then when I checked the result, it gives me errors regarding those special characters.
Here's the product description string:
The 30" Apple Cinema HD Display deliver..etc
The error is in the double-quote.
Can you please assist me on how to do it. Thank you