Counting Values in Multidimensional Array PHP
<p>I know this question has already been answered a few times, however, none of the answers apply to my scenario.</p>
<p>Current Array:</p>
<pre><code>    Array
(
    [12] =&gt; Array
        (
            [0] =&gt; 1AM
            [1] =&gt; 2AM
            [2] =&gt; 3AM
            [3] =&gt; 4AM
        )

    [13] =&gt; Array
        (
            [0] =&gt; 1AM
            [1] =&gt; 2AM
            [2] =&gt; 6AM
            [3] =&gt; 4AM
        )

    [14] =&gt; Array
        (
            [0] =&gt; 1AM
            [1] =&gt; 2AM
            [2] =&gt; 7AM
            [3] =&gt; 4AM
        )

)
</code></pre>
<p>Desired Output:</p>
<pre><code>3 People Signed Up at 1AM,

3 People signed up at 2AM,

1 Signed up at 3AM

1 Signed up at 6AM

1 Signed up at 7AM

3 Signed up at 4AM
</code></pre>
<p>Current code:</p>
<pre><code>foreach($array as $k =&gt; $v) {
    $result[$k] = array_count_values($v);
    arsort($result[$k]);
}
print_r($result);
</code></pre>
<p>In other words, just counting the times and storing them in a separate array or variable.</p>