in_array() works fine but throws error?
<p>AFAIK - <code>in_array()</code> should return <code>TRUE</code> or <code>FALSE</code>.</p>

<p>In my case, It does validate as true - but still throwing an error:</p>

<blockquote>
  <p>[function.in-array]: Wrong datatype for second argument</p>
</blockquote>

<p>The line is this :</p>

<pre><code>in_array($key,$instance['cfl2']);
</code></pre>

<p>and the <code>$instance['cfl2']</code> is a verified <code>array</code> which looks like this :</p>

<p><code>array(2) { [0]=&gt; string(8) "price" [1]=&gt; string(6) "age" }</code></p>

<p>My questions are :</p>

<ul>
<li>What am I doing wrong.</li>
<li>Why it is throwing an error (but still working fine and returns true)</li>
<li>Is the problem occur because I use some kind of nested array ? (meaning that an array item <code>$instance['cfl2']</code> is actually an array by itself ?</li>
</ul>

<p>I also tried <code>$is = $instance['cfl2']</code> and <code>in_array($key,$is)</code> - but the result was the same error.</p>
