title: How to read data from .txt file separated by a whitespace using php
body: <p>I have the following code merely for test purposes</p>
  
  <pre><code>$file = "test.txt";
  
  $resource = fopen($file,"w");
  
  $content = file($file);
  
  fclose($resource);
  </code></pre>
  
  <p>the content in <strong>$file</strong> is as follows</p>
  
  <pre><code>1 5 2 6 142423 2 435 231 5 252 3224 325 54 232
  </code></pre>
  
  <p>I've read <code>file()</code>returns content inside an array by <strong>newlines</strong>. What I really wanted was to push this into an array but I don't know how can I establish a pattern in <strong>PHP</strong>. Any help on this one? Thank you very much!</p>