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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -