我有格式的文本文件: hello world line 1 1234567_45674345 new line this is hello world
this is line 2 and new hello world 980765789_32345332
this is line 3 8976578_45345678 end of file
現在我有這之前強調1234567_45674
我試圖爲我的網站構建這個標記系統,在那裏它檢查寫入的文章(可能是400-1000個單詞),對於特定的單詞和使用所有找到的關鍵字,從陣列。 我所做的是工作正常,但有一些問題我想解決。 $a = "This is my article and it's about apples and pears. I like strawberries as well though.";
$targets =