Question : add up the contents of an array

How can I add up the contents stored in an array? My code below:

<?php

$totalresult = implode($arr_totalrows);

echo $totalresult; ?>

Answer : add up the contents of an array

use a foreach iterator or array_sum().  If you can post an array with the data, I will show you the exact code.
Random Solutions  
 
programming4us programming4us