php获取金书网的书名:

 

<?php 
    
$url="http://www.golden-book.com/booksinfo/12/264.html";
    
$lines_array = file($url);
    
$lines_string = implode('',$lines_array);
    
iconv("gb2312", "utf-8",$lines_string);
//    echo "dsafasdfasf".$lines_string;
    eregi("<span class=\"style15\">[^>]*</span>",$lines_string,$head);
    
echo "asdfsfasdfa".$head[0];
?>

 

 

相关文章:

  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2022-01-15
  • 2021-06-28
  • 2021-06-22
  • 2022-01-18
  • 2021-08-12
  • 2021-12-06
  • 2021-06-01
相关资源
相似解决方案