title: How to get sum of values in specific index of multidimensional array using php?
body: <p>I have this this array in my code</p>
  
  <pre><code>Array
  (
      [1] =&gt; Array
          (
              [1] =&gt; 4
              [5] =&gt; 7
          )
  
      [2] =&gt; Array
          (
              [1] =&gt; 2
              [5] =&gt; 5
          )
  
      [3] =&gt; Array
          (
              [1] =&gt; 2
              [5] =&gt; 5
          )
  
      [4] =&gt; Array
          (
              [1] =&gt; 6
              [5] =&gt; 9
          )
  
      [5] =&gt; Array
          (
              [1] =&gt; 6
              [5] =&gt; 8
          )
  
  )
  1
  </code></pre>
  
  <p>How could I get sum element with same index? Forexample - sum of all element with index 5 or index 1. If it possible without hardcode.</p>