2011-03-28 11:59:46 0 评论 PHP Boy.Lee

file_get_contents 抓取 html内容并转换gb2312 to utf-8

{Code}

$url="http://yiilib.com";
$getContent = iconv("gb2312", "utf-8",file_get_contents($url));
echo $getContent;