代码如下:
//get_title.php(做为现在的主流开发语言)
$file=file("http://www.netasp.com.cn");
$count=count($file);
for($i=0;$i<$count;$i++){
if(eregi("(.*) ",$file[$i],$out)){
$title=$out[0];
}
}
$title=substr($title,7,-8);
echo $title;
?>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
http://www.bkjia.com/PHPjc/508855.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/508855.htmlTechArticle参考:http://www.netasp.com.cn/valley/gettitle/index.php (做为现在的主流开发语言) 代码如下: pre> ? //get_title.php (做为现在的主流开发语言) file=file(...