php in_array with strings containing "&" or "space" in php
<p>I have an array like :</p>

<pre><code>$array = array('a &amp; b' =&gt; 'A &amp; B', 'c &amp; d'=&gt;'C &amp; D');

$string = 'a &amp; b';
</code></pre>

<p>when I do <code>in_array(ucwords($string),$array)</code> I get FALSE
if I do  <code>array_key_exists($string, $array)</code> I also get FALSE</p>

<p>any idea?
thanks</p>

<p>Update: it seems that the way I collected $string is where the problem was ( using fuelphp Uri:: Segment(3) ) though visually  the string collected seems identical for some reason it is not. Thanks for your quick input</p>
