<?php require('htmlsql/snoopy.class.php'); require('htmlsql/htmlsql.class.php'); $c = new UrlCollector(); $c->echoFlg = true; $arr = $c->getUrls('http://example.com/', 'タイトルに共通の部分'); $fp = fopen('test.log', 'a'); foreach ($arr as $url => $title) { fwrite($fp, "$url :\t$title\n"); } fclose($fp); <?php /** * URL Collector * @see http://0-oo.net/sbox/php-tool-box/url-collector * @version 0.1.0 * @cop