title: How to transfer json data to html with php?
body: <p>How to transfer json data to html with php? </p>
  
  <pre><code>$url="http://api.nytimes.com/svc/search/v1/article?format=json&amp;query=usa&amp;rank=newest&amp;api-key=mykey"
  </code></pre>
  
  <p>when I type the url in browser, it return
  <code>{"offset" : "0" , "results" : [{"body" : "A guide to cultural and recreational goings-on in and around the Hudson Valley. ...}]}</code>
  how to put the json <code>body</code> data into html? I mean like this <code>echo '&lt;div class="body"&gt;&lt;/div&gt;';</code> </p>