note 112808 deleted from function.array-filter by cmb
| From: | cmb@php.net | Date: | Sun, 06 Oct 2019 07:59:41 +0000 |
| Subject: | note 112808 deleted from function.array-filter by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212491@lists.php.net to get a copy of this message | ||
Note Submitter: pavian at gmail dot com
----
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);
?>