title: Any function to get elements in common in two arrays?
body: <p>Is there any function that does the inverse operation of <code>array_diff()</code>?</p>
  
  <p>I mean, if i have:</p>
  
  <pre><code>array(1,2,3)
  array(3,4,5)
  </code></pre>
  
  <p>I would like that function returns <code>array(3)</code>, or directly <code>3</code>.</p>
  
  <p>Note: <code>array_intersect()</code> doesn't fit me.</p>
  
  <p>Javier</p>