title: JSON not working in php script
body: <p>I'm not getting the json_encode to work in my php file. Like for instance, I tried this example I got from php.net </p>
  
  <pre><code>&lt;?php
  $arr = array('a' =&gt; 1, 'b' =&gt; 2, 'c' =&gt; 3, 'd' =&gt; 4, 'e' =&gt; 5);
  
  echo json_encode($arr);
  ?&gt;
  </code></pre>
  
  <p>But nothing works. If i remove the echo statement, then my php works, which means php isn't recognizing the json_encode code.</p>
  
  <p>I'm using PHP 5.4.16. To sum it up, I'm using xampp 1.8.2.</p>
  
  <p>Help please?</p>