PHP value doesn't equal to what it echoes
<p>I got a value in <code>$array[1]</code> and I want to know what it is, so I
can compare it in other parts of my code.</p>

<p>So I echo out $array[1] and I get "vrij &amp;nbsp &amp;nbsp " or "vrij     "</p>

<pre><code>$value = $array[1];
echo $value ; // outputs "vrij     "
if($value = $array[1]){
    echo "TRUE 1";
} 
if($value = "vrij     "){ 
   echo "TRUE 2";
}
</code></pre>

<p>The problem is, it only echo's TRUE 1. I copy pasted the echo exactly but it doesn't return TRUE 2</p>
