title: PHP reading a txt data file and passing data to array
body: <p>I need to extract the following data from a txt file(displayed in link),then save every field specified on mysql, my problem is how do I get every field  contained in a row since its separated by spaces </p>
  
  <p>I tried,
     <code>array = explode(' ', $line);</code>  but that method saves spaces    </p>
  
  <p>I would like to pu it into an array ,</p>
  
  <pre><code>Array=(
   [0] =&gt; '1',
   [ 1] =&gt; 'OC1',
   [2] =&gt; 'Columna', 
   [3] =&gt; '1',
   [4] =&gt; 'IN45X104',
   [5] =&gt; '11745'
   ....
   );  
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/GT0AZ.jpg" alt="enter image description here"></p>