-2
有人能幫助我從文本文件中找到單詞的一部分,然後用php打印整個單詞嗎? 這樣,test.txt的有以下文本,從文本文件中查找單詞的一部分,然後打印整個單詞作者:PHP
book.physics.class12
disk.chemistry.class11 some random text........
book.math.class12 bla bla
現在我需要找到class12,我需要一個像
book.physics.class12 book.math.class12
輸出任何人幫助PLZ?