note 112808 added to function.array-filter
| From: | pavian at gmail dot com | Date: | Thu, 25 Jul 2013 10:04:36 +0000 |
| Subject: | note 112808 added to function.array-filter | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195763@lists.php.net to get a copy of this message | ||
Regarding to strlen() related notes, if you want to filter NULL, FALSE and empty strings from the
array, just omit callback function, it does the same trick (but easier).
<?php
$clean = array_filter($array);
?>
----
Server IP: 69.147.83.199
Probable Submitter: 158.194.127.192
----
Manual Page -- http://php.net/manual/en/function.array-filter.php
Edit -- https://master.php.net/note/edit/112808
Del: integrated -- https://master.php.net/note/delete/112808/integrated
Del: useless -- https://master.php.net/note/delete/112808/useless
Del: bad code -- https://master.php.net/note/delete/112808/bad+code
Del: spam -- https://master.php.net/note/delete/112808/spam
Del: non-english -- https://master.php.net/note/delete/112808/non-english
Del: in docs -- https://master.php.net/note/delete/112808/in+docs
Del: other reasons-- https://master.php.net/note/delete/112808
Reject -- https://master.php.net/note/reject/112808
Search -- https://master.php.net/manage/user-notes.php