Php escape special characters in a JSON string
<p>I have an array of product details, in the <strong>product_description</strong> 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:</p>

<pre><code>json_encode($array[ProductData][Product_description]);
</code></pre>

<p>but then when I checked the result, it gives me errors regarding those special characters.</p>

<p>Here's the product description string: </p>

<blockquote>
  <p>The 30" Apple Cinema HD Display deliver..etc</p>
</blockquote>

<p>The error is in the double-quote. </p>

<p>Can you please assist me on how to do it. Thank you</p>