假设我有一个 url 数组,我需要让文件获取数组上每个项目的内容我该怎么做?
$url = "http://seetelkol.com/forum/forum-46/";
$subject= file_get_contents($url);
$subject= preg_match_all('%<a class="title" href="http://seetelkol.com/forum/thread-(.*?)/" id="thread_title_(.*?)>%', $subject, $result, PREG_PATTERN_ORDER);
$result = $result[0];
$patterns = implode('|', $result);
$patterns = preg_match_all('%http://seetelkol.com/forum/thread-[0-9]{0,9}/%', $patterns, $new, PREG_PATTERN_ORDER);
print_r($new);
谁能告诉我该怎么做?