Mecha CMS

Helper functions.

not

Return array items that does not pass to the function test.

2.2.0

not(iterable $data, callable $fn);

Example:

$A = not([1, 2, 3, 4, 5], function($v, $k) {
    return 3 !== $v && $v < 5;
});

Result:

$A = [
    2 => 3,
    4 => 5
];