/** * Filters a list of objects, based on a set of key => value arguments. * * @param array $list An array of objects to filter * @param array $args An array of key => value arguments to match against each * object * @param string $operator The logical operation to perform: * 'AND' means all elements from the array must match; * 'OR' means only one element needs to match; * 'NOT' means no elements may match. * The default is 'AND'. * @return array */ function list_filter($list, $args = array(), $operator = 'AND', $keys_exist_only = false) { return \Phpf\Util\Arr::filter($list, $args, $operator, $keys_exist_only); }