returning a record in array based on highest value with php?
<p>Original data looks like this: banners/ad_1.png | Banner ad 1 | 1 </p>

<p>Here is an array using the print_r function on it:</p>

<pre><code>Array ( [0] =&gt; banners/ad_1.png Banner ad 1 1 
        [1] =&gt; banners/ad_2.png Banner ad 2 2 
        [2] =&gt; banners/ad_3.png Banner ad 3 3 )
</code></pre>

<p>This is after exploding it with a | delimiter, so it's separated by img src, alt text, num times viewed. </p>

<p>Is there a way I can return the banner information by num times viewed, max or min? </p>

<p>I have been playing with min, max, array_values, array_keys, array_multisort.. I can't figure it out. </p>

<p>Thanks!</p>
