[C] 纯文本查看 复制代码 $curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://www.anzhuoq.com/search-'.$cacheid.'-0.htm');
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
$data = curl_exec($curl);
curl_close($curl);
//print_r ($data);
//echo $data;
$ndata = strtr($data,"<title>AndroidQ官网|安卓Q正式版|安卓Q下载社区|Android手机|安卓刷机</title>","<title>111</title>");
echo $ndata;
大佬,php获取到源码后,如何把title替换掉呢? |