![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/10/2009, 21:49
|
![Avatar de gjx2](http://static.forosdelweb.com/customavatars/avatar253651_4.gif) | | | Fecha de Ingreso: agosto-2008 Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 5 meses Puntos: 139 | |
Respuesta: quitar valores en blanco o nulos de un array La misma logica pero SIN ERRORES
Código php:
Ver original$numeros = array("uno","dos","tres","cuatro","",""); function DelNull($matrix){ foreach($matrix as $rows){ $val[] = $rows; } } return $val; } echo count(DelNull ($numeros));
|