$orjinal =$_POST['orjinal'];
$false = file_get_contents("false.txt");
$true = file_get_contents("true.txt");
$false1 = explode("\n", $false);
$true1 = explode("\n", $true);
$new = str_replace($false1, $true1, $orjinal);
工作但改变两次相同的词
false.txt"
apple
melon
true.txt
melon
strawberry
$orjinal="i am eating apple"
我想要这个输出;“我在吃瓜”输出;“我在吃草莓”