Posted by Kimmo Laine on 12/27/05 11:39
"Maximus" <teddy.am@gmail.com> wrote in message
news:1135675938.240858.235210@g43g2000cwa.googlegroups.com...
>I have an array filled with data. I need to sum it's value.
>
> example: $key1=>10, $key2=>15, $key3=>5
>
> I want the total of all values which should be: 30
array_sum();
http://php.net/manual/en/function.array-sum.php
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid
Navigation:
[Reply to this message]
|