title: How to search within a subarray in php?
body: <p>I have following array in php:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
      (
          [city] =&gt; London
          [institute_count_per_city] =&gt; 10
      )
  
      [1] =&gt; Array
      (
          [city] =&gt; Leeds
          [institute_count_per_city] =&gt; 10
      )
  
      [2] =&gt; Array
      (
          [city] =&gt; Edinburgh
          [institute_count_per_city] =&gt; 10
      )
  
      [3] =&gt; Array
      (
          [city] =&gt; GrandTotal
          [institute_count_per_city] =&gt; 30
      )
  
  )
  </code></pre>
  
  <p>Now, the last sub array will always have constant key=>value ([city]=>GrandTotal). I want to get the value of [institute_count_per_city] for [city]=>GrandTotal.</p>
  
  <p>What is the efficient way to achieve this.</p>