title: How to use the Foursquare API to get Venue Details
body: <p>So I'm trying to get details of a specific venue using PHP. Here's my code that attempts to use a GET request to the Foursquare API to return results and then process them as JSON and display the name, address and city:</p>
  
  <pre><code>$curlhandle = curl_init();
              curl_setopt($curlhandle, CURLOPT_URL, "https://api.foursquare.com/v2/venues/4b522afaf964a5200b6d27e3");
              curl_setopt($curlhandle, CURLOPT_RETURNTRANSFER, 1);
  
              $response = curl_exec($curlhandle);
              curl_close($curlhandle);
  
              $json = json_decode($response);
              foreach ($json-&gt;groups[0]-&gt;venues as $result)
              {
                  echo $result-&gt;name.' - '.$result-&gt;address.' '.$result-&gt;city."&lt;p /&gt;";
              }    
  </code></pre>
  
  <p>What am I doing wrong? I'm completely new to PHP and the Foursquare API so it could be something glaringly obvious. </p>