note 65447 deleted from ref.array by nlopess
| From: | nlopess@php.net | Date: | Mon, 01 May 2006 09:51:49 +0000 |
| Subject: | note 65447 deleted from ref.array by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110254@lists.php.net to get a copy of this message | ||
Note Submitter: php at californiakiteboarding dot us
----
////FUNCTION SERIALIZE_BLANKS() RETURNS A TRUNCATED ARRAY if no extra entries were entered AND
reorders keys
function serialize_blanks($var_name) {
foreach($var_name as $key => $value) {///create the array
if($value != '')
$array[$key] = $value;
}///end FOREACH
return $array;
}///end function