title: Delete the line contains specific words/phrases with PHP
body: <p>I have a text file and I want to remove some lines that contain specific words</p>
  <pre><code> &lt;?php
  // set source file name and path
  $source = &quot;problem.txt&quot;;
  
  // read raw text as array
  $raw = file($source) or die(&quot;Cannot read file&quot;);
  </code></pre>
  <p>now there's array from which I want to remove some lines and want to use them so on.</p>