Php獲取金書網(wǎng)的書名的實現(xiàn)代碼
更新時間:2010年06月11日 00:49:17 作者:
php獲取金書網(wǎng)的書名的實現(xiàn)代碼。
復(fù)制代碼 代碼如下:
<?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];
?>
相關(guān)文章
PHP htmlspecialchars_decode()函數(shù)用法講解
今天小編就為大家分享一篇關(guān)于PHP htmlspecialchars_decode()函數(shù)用法講解,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧2019-03-03
zend framework配置操作數(shù)據(jù)庫實例分析
zend framework項目建立后,看了下zend framework配置操作數(shù)據(jù)庫,本文將詳細(xì)介紹,需要了解的朋友可以參考下2012-12-12

