PHP Strange behaviour of foreach -
i've code:
$csv = file('some.csv'); foreach($csv $value) { echo $value; }
everything ok until request method post - last element of array missing (thought it's showing print_r($csv)).
what may problem be? that's whole code!
try it:
$csv = file('some.csv'); // loop through our array foreach ($cvs $line_num => $line) { echo $line."<br />\n"; }
Comments
Post a Comment