title: How to delete a line from the file with php?
body: <p>I have a file named <code>$dir</code> and  a string named <code>$line</code>, I know that this string is a complete line of that file but I don't know its line number and I want to remove it from file, what should I do?</p>
  
  <p>Is it possible to use awk?</p>