[HAB] Remove empty cells from an array

From: Date: Sat, 15 Jan 2005 14:14:22 +0000
Subject: [HAB] Remove empty cells from an array
Groups: php.general 
Request: Send a blank email to php-general+get-206430@lists.php.net to get a copy of this message
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'; ===== Regards, OOzy What is the purpose of life? __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo

« previous php.general (#206430) next »