title: How to search a php array and get the corresponding key value if it matches
body: <p>I need to search a multi dimensional array in php and return the corresponding value of another key if my key and value match</p>
  
  <pre><code>$my_array = array(    
      0 =&gt;  array(  
          "name"   =&gt; "john",  
          "id"    =&gt;  4  
      ),  
      1   =&gt;  array(  
          "name" =&gt;  "mark",  
          "id" =&gt; 152  
      ), 
      2   =&gt;  array(  
          "name" =&gt;  "Eduard",  
          "id" =&gt; 152  
      )
  );
  
  if (array_search(152, array_column($my_array, 'id')) !== FALSE){
    I want the corresponding key and value here
  i.e name="mark" in this case
  }
  </code></pre>