title: Find highest value in multidimensional array
body: <p><strong>The Problem</strong></p>
  
  <p>I have a multidimensional array similar to the one below. What I'm trying to achieve is a way to find and retrieve from the array the one with the highest "Total" value, now I know there's a function called <code>max</code> but that doesn't work with a multidimensional array like this.</p>
  
  <p>What I've thought about doing is creating a foreach loop and building a new array with only the totals, then using <code>max</code> to find the max value, which would work, the only issue would then be retrieving the rest of the data which relates to that max value. I'm not sure that's the most efficient way either.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [Key1] =&gt; Key1
              [Total] =&gt; 13
          )
  
      [1] =&gt; Array
          (
              [Key2] =&gt; Key2
              [Total] =&gt; 117
          )
  
      [2] =&gt; Array
          (
              [Key3] =&gt; Key3
              [Total] =&gt; 39
          )
  )
  </code></pre>