title: PHP: Find element with certain property value in array
body: <p>I'm sure there is an easy way to do this, but I can't think of it right now. Is there an array function or something that lets me search through an array and find the item that has a certain property value? For example:</p>
  
  <pre><code>$people = array(
    array(
      'name' =&gt; 'Alice',
      'age' =&gt; 25,
    ),
    array(
      'name' =&gt; 'Waldo',
      'age' =&gt; 89,
    ),
    array(
      'name' =&gt; 'Bob',
      'age' =&gt; 27,
    ),
  );
  </code></pre>
  
  <p>How can I find and get Waldo?</p>