title: PHP read a file and store the informations in variables
body: <p>Is there any way to read a text file and store the information to variables? </p>
  
  <p>My file.txt is like,</p>
  
  <pre><code>Timestamp 1343872162
  No.of tall 2
  No.of long 5
  tall1 171
  tall2 172
  long1 170
  long2 168
  long3 168
  long4 166
  long5 166
  </code></pre>
  
  <p>That is, I have to retrieve these values from that file as $time=1343872162, $tall1=171, $tall2=172,$long1=170 etc.
  Any thoughts?</p>
  
  <p>Thanks!</p>