PHP Sum Array - sum only elemants of an array

Posted by Homer_J on Stack Overflow See other posts from Stack Overflow or by Homer_J
Published on 2010-04-21T09:35:15Z Indexed on 2010/04/21 9:43 UTC
Read the original article Hit count: 388

Filed under:

Hi all,

I have have an array as follows:

$row[6]

This section of the array has 4 numbers within it that I can display and use without any problems, what I'd like to be able to do is sum the first two numbers and the last two numbers separately.

Is there any way to do this?

Thanks in advance,

Homer.

© Stack Overflow or respective owner

Related posts about php