title: CURL return data handling
body: <p>I've written a PHP function to get plus ones count for a URL</p>
  
  <pre><code>function makeApiCall($destinationUrl, $stringOfParams){
    $curl = curl_init();
    echo $destinationUrl.$stringOfParams."&lt;br&gt;";
    curl_setopt($curl, CURLOPT_URL, $destinationUrl.$stringOfParams);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $result = curl_exec($curl);
    curl_close($curl);
    echo $result;
   }
  </code></pre>
  
  <p>While inputting <code>https://plusone.google.com/u/0/_/+1/fastbutton</code> as destination URL and inputting the correct string of params, the result I'm receiving in <code>$result</code> is HTML.
  The problem is that I would like using PHP to get the count and not using JavaScript.</p>
  
  <p>How can I do that?</p>