▽1
●
Cherenkov ●300ポイント ![]() |
うーん
<?php $file_new = file("new.txt", FILE_IGNORE_NEW_LINES); $file_old = file("old.txt", FILE_IGNORE_NEW_LINES); $result = array(); foreach ($file_new as $line) { if (!in_array($line, $file_old)) { array_push($result, $line); } } file_put_contents("a.txt", join("\n", $result));