Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/02/2016, 08:37
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 1 mes
Puntos: 2534
Respuesta: Sintaxis array_sum

Ejemplo:
Código PHP:
Ver original
  1. $totales = array();
  2.  
  3. while (/* ... */) {
  4.   $totales []= $sub_total;
  5. }
  6.  
  7. var_dump(array_sum($totales));
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.