title: Php in_array find value by key
body: <p>I have an array like this:</p>
  
  <pre><code>$array = Array ( [0] =&gt; Array ( [id] =&gt; 6 ) [1] =&gt; Array ( [id] =&gt; 6 ) [2] =&gt; Array ( [id] =&gt; 123 ) [3] =&gt; Array ( [id] =&gt; 123 ) ) 
  </code></pre>
  
  <p>In a cycle I use the function </p>
  
  <pre><code>$id = 123;
  
  if (in_array($id, $array)) {
     echo "found!!";
     }
     else
     {               
     echo "not found";
     }
  </code></pre>
  
  <p>But doesn't works; Why?</p>