title: Replace a whole line where a particular word is found in a text file
body: <p>How can I replace a particular line of text in file using php?</p>
  <p>I don't know the line number. I want to replace a line containing a particular word.</p>