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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -