note 76517 deleted from ref.array by felipe
| 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;
}
?>