改行文字の置換方法をpreg_replaceからstr_replaceに再修正

This commit is contained in:
konkon-fox 2023-10-18 23:22:01 +09:00
parent 74004c4a94
commit 7bc2364a1f
1 changed files with 2 additions and 2 deletions

View File

@ -986,9 +986,9 @@ if (!$tlonly) {
$TTL = array_reverse($LTL);
$headText = file_get_contents($PATH."head.txt");
$headText = mb_convert_encoding($headText, 'UTF-8', 'SJIS-win');
$headText = preg_replace('/(\r\n|\r|\n)/', '', $headText);
$headText = str_replace(array("\r\n","\r","\n"), '', $headText);
$kokutiText = file_get_contents($PATH."kokuti.txt");
$kokutiText = preg_replace('/(\r\n|\r|\n)/', '', $kokutiText);
$kokutiText = str_replace(array("\r\n","\r","\n"), '', $kokutiText);
$fp = "ローカルルール<><>99/01/01 00:00:00 <>".$headText."<>TL\n";
$fp .= "告知欄<><>99/01/01 00:00:00 <>".$kokutiText."<>\n";
foreach ($TTL as $tmp) {