note 76517 deleted from ref.array by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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;
	}
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.