Why in_array() is not working in this case? (array from file())
<p>Why is this code not working?</p>

<p>I have test.txt it contains:</p>

<pre><code>A
B
C
</code></pre>

<p>My PHP code is:</p>

<pre><code>$arr = file('test.txt');

if (in_array('A', $arr)) {
   echo 'A is found';
}
</code></pre>

<p>Result. nothing. But this following code works fine:</p>

<pre><code>if (in_array('C', $arr)) {
    echo 'C is found';
}
</code></pre>

<p>Can someone help me?</p>
