title: How to echo the cURL result in PHP?
body: <p>Here is a URL→ <a href="https://ajax.googleapis.com/ajax/services/search/images?v=1.0&amp;q=snoopy&amp;rsz=1" rel="nofollow">https://ajax.googleapis.com/ajax/services/search/images?v=1.0&amp;q=snoopy&amp;rsz=1</a></p>
  
  <p>and this is my php code</p>
  
  <pre><code>&lt;?php
      $url = "https://ajax.googleapis.com/ajax/services/search/images?"."v=1.0&amp;q=snoopy";
  
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $body = curl_exec($ch);
      curl_close($ch);
  
      $json = json_decode($body);
  ?&gt;
  </code></pre>
  
  <p>I wanna echo all of the image urls from its result <br/>
  (For example: <a href="http://img2.wikia.nocookie.net/__cb20110331075248/peanuts/images/6/62/Snoopy.gif" rel="nofollow">http://img2.wikia.nocookie.net/__cb20110331075248/peanuts/images/6/62/Snoopy.gif</a> )</p>
  
  <p>But I have no idea how to echo them.<br/>
  Hope someone could help me, thanks!</p>