Re: [HAB] Remove empty cells from an array

From: Date: Sat, 15 Jan 2005 23:45:30 +0000
Subject: Re: [HAB] Remove empty cells from an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206439@lists.php.net to get a copy of this message
"OOzy Pal" <oozypal@yahoo.com> wrote in message news:20050115141422.85573.qmail@web50504.mail.yahoo.com... > Dears, > > How can I remove empty cells/places in an array. For > example: > > a[1]='John'; > a[2]='Mike'; > a[3]='Lisa'; > a[4]=''; > a[5]=''; > > How can I remove a[4] & a[5], so the array is only > > a[1]='John'; > a[2]='Mike'; > a[3]='Lisa'; unset($a[4]); Regards, Torsten Roehr

« previous php.general (#206439) next »