esiste una funzione per eliminare tutti gli elementi vuoti in un array?
esiste una funzione per eliminare tutti gli elementi vuoti in un array?
Errare humanum est, perseverare ovest
in che senso elementi vuoti?
The fastest Redis alternative ... cachegrand! https://github.com/danielealbano/cachegrand
penso vuoti un questo senso:
codice:$temp=array('','pippo',2,''); foreach($temp as $chiave=>$valore) if($temp[$chiave] == '') unset($temp[$chiave]);
![]()
think simple think ringo
si, nel senso che c'è un indice ma qualche elemento è vuoto ossia non ha dentro niente
Errare humanum est, perseverare ovest
PERFETTO![supersaibal]Originariamente inviato da marketto
penso vuoti un questo senso:
codice:$temp=array('','pippo',2,''); foreach($temp as $chiave=>$valore) if($temp[$chiave] == '') unset($temp[$chiave]);
[/supersaibal]
Grazie
![]()
Errare humanum est, perseverare ovest