Re: [问题] 夹在中间的字

楼主: frsnic (路人)   2010-11-19 15:01:37
附上我的原始程式好了
$url = "http://search.books.com.tw/exep/openfind.php?key=9789861752068";
$text = iconv("big5", "utf-8",file_get_contents($url));
preg_match('/<a rel=\"mid_name\" href=\"[^\"]*\" \
title=\"([^\"]*)\"[^\>]*\>/', $text, $match);
print_r($match);
结果
Array ( [0] => Array ( )
[1] => Array ( )
)
我不懂的是为什么我抓到的都会是阵列呢 ~"~

Links booklink

Contact Us: admin [ a t ] ucptt.com