二维数组依据键值相加

WBOY
Release: 2016-06-13 12:42:33
Original
1110 people have browsed it

二维数组根据键值相加
怎样根据每一个数组的键值相加?


Array
(
    [0] => Array
        (
            [reg] => 0
            [regs] => 0
            [login] => 7
            [pay] => 0
            [buy] => 4
            [payment] => 11334.00
            [recharge] => 1
            [rechargea] => 3600.00
        )

    [1] => Array
        (
            [reg] => 1
            [regs] => 0
            [login] => 22
            [pay] => 0
            [buy] => 0
            [payment] => 0.00
            [recharge] => 0
            [rechargea] => 0.00
        )

    [2] => Array
        (
            [reg] => 0
            [regs] => 0
            [login] => 5
            [pay] => 0
            [buy] => 1
            [payment] => 376.00
            [recharge] => 0
            [rechargea] => 0.00
        )

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template