Simple HTML DOM Parserを使った解析のサンプル。 htmlソースのDOM化 urlから直接取れば良いんだけど文字化けすることもあるので一手間かける。 // simple_html_dom.phpファイルの読み込み include_once('simple_html_dom.php'); // UTF-8で処理 – 他の文字コード処理するかもしれないからdefineしておく。 define("CHAR_SET","UTF-8"); // 文字化け対策のおまじない的(?)なもの。 mb_language("Japanese"); // 解析したいURL。ファイル名でも可。 $url = "https://tips.recatnap.info/"; // [$url]からファイルの中身を取得 $sorce = file_get_contents( $url ); // [$s