title: curl_exec printing results when I don't want to
body: <p>I am using the following code:</p>
  
  <pre><code>$ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, $url);
  
  curl_setopt($ch, CURLOPT_TIMEOUT, 12); 
  
  $result = curl_exec($ch);
  
  curl_close ($ch);
  </code></pre>
  
  <p>However it's printing the results straight away. Is it possible to put the JSON result into a variable so I can print it out when I want to?</p>