title: Reading *.csv files from directory and showing the content of each file fails
body: <p>I need help with reading the folder and opening / outputting the csv data, I have used examples other people have written but none of them have worked for me.</p>
  
  <p>What I currently have is this, but it doesn't output the files:</p>
  
  <pre><code>$files = scandir($PathToCreate.$version."/"); //scan the folder
  foreach($files as $file) { //for each file in the folder
  
  //The following is another example I found but does not output anything I just need to open each file and be able to output / target specific data
  
  $csv = array();
  $lines = file($file, FILE_IGNORE_NEW_LINES);
  
  foreach ($lines as $key =&gt; $value)
  {
      $csv[$key] = str_getcsv($value);
  } 
  print_r($csv)
  
  }
  </code></pre>