PHP Strange behaviour of foreach
<p>I've a code:</p>

<pre><code>$csv = file('some.csv');

foreach($csv as $value)
{
    echo $value;
}
</code></pre>

<p>Everything is OK until the request method was POST - then the last element of an array is missing (thought it's showing properly by print_r($csv)).</p>

<p>What may the problem be? That's the WHOLE CODE!</p>
