title: PHP to search within txt file and echo the whole line
body: <p>Using php, I'm trying to create a script which will search within a text file and grab that entire line and echo it.</p>
  
  <p>I have a text file (.txt) titled "numorder.txt" and within that text file, there are several lines of data, with new lines coming in every 5 minutes (using cron job). The data looks similar to:</p>
  
  <pre><code>2 aullah1
  7 name
  12 username
  </code></pre>
  
  <p>How would I go about creating a php script which will search for the data "aullah1" and then grab the entire line and echo it? (Once echoed, it should display "2 aullah1" (without quotations).</p>
  
  <p>If I didn't explain anything clearly and/or you'd like me to explain in more detail, please comment.</p>