title: PHP fill array into for
body: <p>in this below code i want to fill array with for repeator. <code>echo</code> can display and not have problem but. my array could not fill by <code>for</code>.</p>
  
  <pre><code>&lt;meta charset='UTF-8' /&gt;
  &lt;?php
  error_reporting(1);
  $handle='A-file.txt';
  $handle = file_get_contents($handle);
  $lines = explode(PHP_EOL,$handle );
  $names = array();
  for( $i = 0; count($lines)-1 ; $i+=4 )
  {
      $names[]= $lines[$i];
  
      //$names= $lines[$i];
      //$names[]+= $lines[$i];
      //echo $lines[$i];
  }
  print_r($names);
  ?&gt;
  </code></pre>