回答編集履歴
1
追記
answer
CHANGED
@@ -6,7 +6,8 @@
|
|
6
6
|
<?php
|
7
7
|
$origin = [
|
8
8
|
"title" => "和風月名(わふうげつめい) | 日本の暦",
|
9
|
-
"url" => "https://www.ndl.go.jp/koyomi/chapter3/s8.html"
|
9
|
+
"url" => "https://www.ndl.go.jp/koyomi/chapter3/s8.html",
|
10
|
+
"sourc" => "国立国会図書館ウェブサイトより",
|
10
11
|
];
|
11
12
|
$page = file_get_contents($origin["url"]);
|
12
13
|
preg_match("/<table[\S\s]*?</table>/u", $page, $table);
|