function DaumKeyWord(){
$Curl = curl_init();
curl_setopt($Curl, CURLOPT_URL, "https://www.daum.net/");
curl_setopt($Curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($Curl, CURLOPT_SSL_VERIFYPEER, FALSE);
$Result = curl_exec($Curl);
$Rand[0] = explode("<span class=\"txt_issue\">", $Result);
for($i=1; $i < count($Rand[0]); $i++){
$Rand[1] = explode("</span>", $Rand[0][$i]);
$ReturnData = trim(strip_tags($Rand[1][0]));
if($ReturnData){
$ReturnArray[] = $ReturnData;
}
}
$ReturnArray = array_unique($ReturnArray);
foreach($ReturnArray as $ReturnArray) $Return[] = $ReturnArray;
return $Return;
}
$DaumKeyWord = DaumKeyWord();
print_r($DaumKeyWord);
Trackback Address :: 이 글에는 트랙백을 보낼 수 없습니다