note 76517 deleted from ref.array by felipe

From: Date: Sun, 30 Dec 2007 19:29:39 +0000
Subject: note 76517 deleted from ref.array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134532@lists.php.net to get a copy of this message
Note Submitter: shufty at gmail dot com ---- when using Nimja's function, it was removing values that equaled 0, the following function counters this <?php function cleanArray($array) { foreach ($array as $key => $value) { if ($value == "") unset($array[$key]); } return $array; } ?>

« previous php.notes (#134532) next »