title: PHP - Invalid argument supplied for foreach() warning message
body: <pre><code>$data = file_get_contents($file);
  
  $fexplode = explode(PHP_EOL, $data);
  
  foreach ($fexplode as $uline) {
       foreach (unserialize($uline) as $item =&gt; $value){ 
           echo $item . " :  ";
           echo $value;
       }
  } 
  </code></pre>
  
  <p>Getting a "Warning: Invalid argument supplied for foreach() " warning on my page when running this code</p>