2 ms·
> Empty is merely the function equivalent of the not (!) operator. Nope! "empty" is an operator too: var_dump(array_map('empty', [null, '', 5, false]));
by chriswarbo 12y ago
> Empty is merely the function equivalent of the not (!) operator.
Nope! "empty" is an operator too:
var_dump(array_map('empty', [null, '', 5, false]));
PHP Warning: array_map() expects parameter 1 to be a valid callback, function 'empty' not found or invalid function name
NULL
See https://bugs.php.net/bug.php?id=66368 https://bugs.php.net/bug.php?id=66368