not
Return array items that does not pass to the function test.
not(iterable $value, callable $fn);
Example:
$A = not([1, 2, 3, 4, 5], function($v, $k) {
return 3 !== $v && $v < 5;
});
Result:
$A = [
2 => 3,
4 => 5
];
Helper functions.
not
Return array items that does not pass to the function test.
not(iterable $value, callable $fn);
Example:
$A = not([1, 2, 3, 4, 5], function($v, $k) {
return 3 !== $v && $v < 5;
});
Result:
$A = [
2 => 3,
4 => 5
];