Ver Mensaje Individual
  #12 (permalink)  
Antiguo 11/05/2013, 18:48
aldo_rengo
 
Fecha de Ingreso: febrero-2013
Ubicación: en mi casa
Mensajes: 541
Antigüedad: 11 años, 2 meses
Puntos: 3
Respuesta: funcion para borrar ceros error?

Código PHP:
function borra_ceros($arreglo)
{
$corre=count($arreglo);

for(
$i=0;$i<$corre;$i++)
{

$fruit array_shift($arreglo);

if(
$fruit!=0)
{
$sin_ceros[]=$fruit;
}

}

return 
$sin_ceros;



hasta el "fruit" del manual de php , lo copie.
asi anda..