title: How to echo forward slash in PHP having content-type set to application/javascript
body: <pre><code>&lt;?php
  header("Content-type: application/javascript");
  
  echo json_encode(array("reply" =&gt; "SERVER CRIED" , "Tip" =&gt; "Remove the part following '/' in URL")) ; //If params not provided.
  
  ?&gt;
  </code></pre>
  
  <p>it will echo this:-</p>
  
  <pre><code>{"reply":"SERVER CRIED","Tip":"Remove the part following '\/' in URL"}
  </code></pre>
  
  <p>but I want it to echo this:-</p>
  
  <pre><code>{"reply":"SERVER CRIED","Tip":"Remove the part following '/' in URL"}
  </code></pre>