How to get "maximum range" from an array
<p>Index is 00 to 23 (24-hour time)</p>

<p>What I am trying to accomplish is to get largest maximum range.</p>

<p>Each array will have a maximum of 24 elements. Of these, I want to get all the ones which are high (a range).</p>

<p>So, 
for first array - 10,16,19,19 
second - 18,19,20
third - 9,11.</p>

<pre><code>Array
(
    [00] =&gt; 10
    [01] =&gt; 19
    [02] =&gt; 10
    [03] =&gt; 4
    [04] =&gt; 1
    [13] =&gt; 16
    [14] =&gt; 2
    [15] =&gt; 5
    [16] =&gt; 2
    [17] =&gt; 3
    [18] =&gt; 1
    [19] =&gt; 1
    [20] =&gt; 1
    [21] =&gt; 5
    [22] =&gt; 1
    [23] =&gt; 2
)

Array
(
    [09] =&gt; 6
    [10] =&gt; 20
    [11] =&gt; 18
    [12] =&gt; 19
    [13] =&gt; 3
    [15] =&gt; 11
    [16] =&gt; 9
    [18] =&gt; 10
)
Array
(
    [00] =&gt; 4
    [01] =&gt; 3
    [12] =&gt; 4
    [16] =&gt; 4
    [21] =&gt; 9
    [22] =&gt; 11
    [23] =&gt; 6
)
</code></pre>

<p>The problem is, these values could get changed entirely, like this one -</p>

<pre><code>Array
(
    [13] =&gt; 117
    [14] =&gt; 221
    [15] =&gt; 211
    [16] =&gt; 145
    [17] =&gt; 23
    [18] =&gt; 15
    [19] =&gt; 1
)
</code></pre>

<p>Any solution for this?</p>

<p>Thank you,people.</p>
