title: What is the difference between JSON and JSONP?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2067472/please-explain-jsonp">Please explain JSONP</a>  </p>
  </blockquote>
  
  
  
  <p>For example in the jQuery documentation I find both JSON and JSONP mentioned. What is the difference exactly? How can I see which is which? Which one should be used for what?</p>
  
  <p>And what does the PHP function <code>json_encode</code> generate?</p>