title: Return Google Image Search Results in HTML using PHP
body: <p>I know how we can use the Google API to return image results in AJAX, but I want to be able to return images for a specific query and then output them in to HTML on  my page.</p>
  
  <p>For example:</p>
  
  <p><a href="http://ajax.googleapis.com/ajax/services/search/images?v=1.0&amp;q=sausages" rel="noreferrer">http://ajax.googleapis.com/ajax/services/search/images?v=1.0&amp;q=sausages</a></p>
  
  <p>Returns results with infomation and images about the top 10 results for the keyword sausages. </p>
  
  <p>How can I query this url to output the images and titles of the images on my page using PHP in HTML.</p>
  
  <p>I am using the following at the top of the function to return the title:</p>
  
  <pre><code>$tit = get_the_title();
  </code></pre>
  
  <p>Then I am apending it here:</p>
  
  <pre><code>$json = get_url_contents('http://ajax.googleapis.com/ajax/services/search/images?v=1.0&amp;q='.$tit.'');
  </code></pre>
  
  <p>But it won't recognize the title</p>