file_get_contents 抓取 html内容并转换gb2312 to utf-8
{Code}
$url="http://yiilib.com"; $getContent = iconv("gb2312", "utf-8",file_get_contents($url)); echo $getContent;
{Code}
$url="http://yiilib.com"; $getContent = iconv("gb2312", "utf-8",file_get_contents($url)); echo $getContent;
YiiLib 专注于: 专业Web开发教程和专业Web开发服务
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
留言