![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/03/2012, 03:36
|
![Avatar de repara2](http://static.forosdelweb.com/customavatars/avatar369161_2.gif) | | | Fecha de Ingreso: septiembre-2010 Ubicación: München
Mensajes: 2.445
Antigüedad: 14 años, 4 meses Puntos: 331 | |
Respuesta: Suma While
Código PHP:
Ver original<?php $ids = array(1,2,3,2,3,4,5,4,3,4,5,6,7,6,7,8,9,8,9,8,7,6,5,4); for($i = 0; $i<count($ids); $i++) { else $resultados[$ids[$i]]++; } echo "<pre>"; echo "<h3>Origen:</h3>"; echo "<h3>Recuento:</h3>"; echo "</pre>"; ?>
__________________ Fere libenter homines, id quod volunt, credunt. |