title: Extract same key from array and count same values in new array php
body: <p>I have this array</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [status] =&gt; 15
              [orario] =&gt; 10:00
          )
  
      [1] =&gt; Array
          (
              [status] =&gt; 15
              [orario] =&gt; 11:00
          )
  
      [2] =&gt; Array
          (
              [status] =&gt; 15
              [orario] =&gt; 09:00
          )
  
      [3] =&gt; Array
          (
              [status] =&gt; 12
              [orario] =&gt; 09:00
          )
  
      [4] =&gt; Array
          (
              [status] =&gt; 12
              [orario] =&gt; 09:00
          )
      [5] =&gt; Array
          (
              [status] =&gt; 12
              [orario] =&gt; 10:00
          )
  
  )
  </code></pre>
  
  <p>So I want a new array where I have the count of similar status, in this case, status=12, I have 2 values with status 12 and orario = 09:00, 1 case with status=12 and orario = 10:00</p>
  
  <pre><code>Array
  (
      09:00 =&gt; 2
      10:00 =&gt; 1
  )
  </code></pre>
  
  <p>with array_column I have no filter </p>
  
  <pre><code>$stat_orario = array_column($the_array, 'status', 'orario');
  print_r($stat_orario);
  </code></pre>
  
  <p>So I have the total result</p>
  
  <pre><code>Array
  (
      09:00 =&gt; 3
      10:00 =&gt; 2
      11:00 =&gt; 1
  )
  </code></pre>