伙计们我有一个文本文件,我想删除一些包含特定单词的行
<?php // set source file name and path $source = "problem.txt"; // read raw text as array $raw = file($source) or die("Cannot read file");
现在有一个数组,我想删除一些行,并希望使用它们等.
php text
php ×1
text ×1