title: How to Sum Columns of a Multi-Dimensional Array?
body: <p>I have array data like :</p>
  <pre><code>[
      'A1' =&gt; [1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      'A2' =&gt; [1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
      'A3' =&gt; [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  ];
  </code></pre>
  <p>I want to add the column values and produce a flat array of sums.</p>
  <p>I want answer like this:</p>
  <pre><code>[2, 1, 0, 0, 0, 0, 0, 0, 0, 0]
  </code></pre>
  <p>Are there any array functions in php to do this? Otherwise how can I do this?</p>