You can save the cURL output as a string for further manipulation.
Following code takes care of:
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "http://example.com");
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// save output to string
$output = curl_exec($ch);
// close curl resource to free up system resources
curl_close($ch);
NICE! I love it! 😀