title: Get values that occur in multiple arrays
body: <p>I perform four seperate mysql queries that return four different arrays of userid's. I need to check all the arrays for userid's that occur in all arrays and then create a new array with those values so that I can use that in another query.</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [userid] =&gt; 11 ) 
          [1] =&gt; Array ( [userid] =&gt; 22 ) 
          [2] =&gt; Array ( [userid] =&gt; 33 ) 
        ) 
  Array ( [0] =&gt; Array ( [userid] =&gt; 11 ) 
          [1] =&gt; Array ( [userid] =&gt; 99 ) 
          [2] =&gt; Array ( [userid] =&gt; 33 ) 
        ) 
  Array ( [0] =&gt; Array ( [userid] =&gt; 11 ) 
          [1] =&gt; Array ( [userid] =&gt; 33 ) 
        ) 
  Array ( [0] =&gt; Array ( [client_id] =&gt; 11 )
          [1] =&gt; Array ( [client_id] =&gt; 33 )
          [2] =&gt; Array ( [client_id] =&gt; 99 )
        )
  </code></pre>
  
  <p>So my final array, from these four, would be:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [id] =&gt; 11 ) 
          [1] =&gt; Array ( [id] =&gt; 33 ) 
        ) 
  </code></pre>
  
  <p>I was trying to mickey mouse a solution with <code>array_count_values</code> but wasn't having much success with that.</p>