Array Cleansing

From: Date: Fri, 23 Mar 2001 16:00:49 +0000
Subject: Array Cleansing
Groups: php.general 
Request: Send a blank email to php-general+get-45300@lists.php.net to get a copy of this message
Maybe someone could help with this? I'm trying to remove white space values from my array, and resequence them, so that the following: foo[0] = "value", foo[1] = " ", foo[2] = "value", foo[3] = " ", foo[4] = "value" after running through a piece of code would turn into foo[0] = "value", foo[1] = "value", foo[2] = "value", foo[3] = null, foo[4] = null, The code I wrote, and deleted out of frustration ended up with all of the variables equal to null. Maybe someone could show me the proper way? PKshifted

« previous php.general (#45300) next »