note 63302 added to ref.array
| From: | alessandronunes at gmail dot com | Date: | Sat, 18 Mar 2006 22:06:07 +0000 |
| Subject: | note 63302 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106054@lists.php.net to get a copy of this message | ||
The Ninmja sugestion plus multidiomensional array search (recursive):
function cleanArray($array) {
foreach ($array as $index => $value) {
if(is_array($array[$index])) $array[$index] = cleanArray($array[$index]);
if (empty($value)) unset($array[$index]);
}
return $array;
}
----
Server IP: 66.163.161.117
Probable Submitter: 201.50.213.157
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit -- http://master.php.net/note/edit/63302
Del: integrated -- http://master.php.net/note/delete/63302/integrated
Del: useless -- http://master.php.net/note/delete/63302/useless
Del: bad code -- http://master.php.net/note/delete/63302/bad+code
Del: spam -- http://master.php.net/note/delete/63302/spam
Del: non-english -- http://master.php.net/note/delete/63302/non-english
Del: in docs -- http://master.php.net/note/delete/63302/in+docs
Del: other reasons-- http://master.php.net/note/delete/63302
Reject -- http://master.php.net/note/reject/63302
Search -- http://master.php.net/manage/user-notes.php