<?php
function grabbing($url){
$data = curl_init();
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $url);
$output = curl_exec($data);
curl_close($data);
return $output;
}
$ambilhtml = grabbing('http://h4nk.blogspot.com');
$filter = explode('<h3', $ambilhtml);
$filterakhir = explode('</h3>', $filter[1]);
echo $filterakhir[1];
// Source : http://h4nk.blogspot.com/2013/05/teknik-grabbing-dengan-curl-php.html
?>