title: Extract a single value from two arrays that share the same one in php?
body: <pre><code>$actresses = array(
      1 =&gt; "Natalie Wood",
      2 =&gt; "Audrey Hepburn",
      3 =&gt; "Marilyn Monroe",
      4 =&gt; "Grace Kelly",
      5 =&gt; "Olivia Hussey");
  
  $actressestoday = array(
      6 =&gt; "Jennifer Lopez",
      7 =&gt; "Jennifer Love Hewitt",
      8 =&gt; "Paula Newman",
      9 =&gt; "Lindsay Lohan",
     10 =&gt; "Michelle Branch",
     11 =&gt; "Olivia Hussey"); 
  </code></pre>
  
  <p>How do I extract only Olivia Hussey from the array using a function?   Basically,  how do I combine the two columns and then output a single value for Olivia   Hussey using a function in php?</p>
  
  <p>I've tried the following but it is not working:</p>
  
  <pre><code> $allactresses = array_intersect($actresses, $actressestoday);
   $value = array_column($allactresses, '11');
  </code></pre>
  
  <p>Thanks.</p>