It is possible sum values by keys? how do it (php)
Posted
by BaskoAndrey
on Stack Overflow
See other posts from Stack Overflow
or by BaskoAndrey
Published on 2010-03-24T18:57:42Z
Indexed on
2010/03/24
19:03 UTC
Read the original article
Hit count: 73
php
Array for example
$array = Array ( [0] => Array ( [first] => 5 ) [1] => Array ( [first] => 4 ) [2] => Array ( [second] => 3 ) );
How sum values by keys for result
$first with value 9 and $second - 3
thanks in advance
© Stack Overflow or respective owner