php fastest way to search array of objects to find needle and index
<p><strong>PHP version: 5.3</strong></p>

<p>In Wordpress, I have an array of all the posts in a category having this format.</p>

<pre><code>array
  0 =&gt; 
      public 'ID' =&gt; int 360
      public 'post_title' =&gt; string 'Batman v Superman: Dawn of Justice' 
  1 =&gt; 
      public 'ID' =&gt; int 371
      public 'post_title' =&gt; string 'Star Wars: Episode VII - The Force Awakens'
... =&gt;
</code></pre>

<p>Knowing the 'post_title' of the current post, what is the most efficient way using "post_title" as a needle to search the array and find it's index?</p>