Get all of the input except for a specified array of items.

@param  array|mixed  $keys
@return array
320565
public function except($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();
        $results = [];
        $inputs = $this->all();
        foreach ($inputs as $key => $input) {
            if(!in_array($key,$keys))
                $results[$key] = $input[$key];
        }
        return $results;
    }
58042
public static function without(array $arr, string ...$keys): array
    {
        foreach ($keys as $key) {
            if (isset($arr[$key])) {
                unset($arr[$key]);
            }
        }
        return $arr;
    }
1048223
static private function filterKeys( array &$keys )
    {
        if ( isset( $GLOBALS['eZRequestError'] ) && $GLOBALS['eZRequestError'] === true )
        {
            $requestUri = eZSys::requestURI();
            foreach ( $keys as $i => &$key )
            {
                if ( is_array( $key ) )
                {
                    self::filterKeys( $key );
                }
                else if ( $key === $requestUri )
                {
                    unset( $keys[$i] );
                }
            }
        }
    }
443747
public function all($keys = []) : Collection
	{
		if (count($keys) == 0) {
			$keys = $this->preferences->keys();
		}

		if (is_string($keys)) {
			$keys = [$keys];
		}

		return Collection::make($keys)->flatMap(function ($item) {
			if (isset($this->preferences[$item])) {
				$result[$item] = explode(',', $this->preferences[$item]);
			}
			return $result ?? [];
		});
	}
509437
protected function purifyInputs(array $inputs)
    {
        foreach ($inputs as $key => $input) {
            if ($key[0] === '_') {
                unset($inputs[$key]);
            }
        }

        return $inputs;
    }
814143
function (keys) {
            keys = Array.isArray(keys) ? keys : {};

            return self.input.flash('except', keys);
        }
173159
public function only( $keys )
	{
		$dictionary = Arr::only( $this->getDictionary(), $keys );

		return new static( array_values( $dictionary ) );
	}
283538
public function except($key)
    {
        $keys = is_array($key) ? $key : func_get_args();

        return new static($this->classname, array_diff_key($this->items, $this->filterByKeys($keys)));
    }
1294663
public static function filterKeys(array $array, array $keys): array
	{
		$keysKeys = array_flip($keys);
		$presentKeysKeys = array_intersect_key($keysKeys, $array);
		$presentKeys = array_flip($presentKeysKeys);

		$filtered = [];
		foreach ($presentKeys as $key) {
			$filtered[$key] = $array[$key];
		}

		return $filtered;
	}
296355
public function items(array $keys = null): array
    {
        if ($keys != null) {
            $return = [];
            foreach ($keys as $key) {
                $return[$key] = $this->get($key);
            }
        } else {
            $return = $this->data;
        }

        return $return;
    }
1273690
private function iteratorFromKeys(array $keys)
    {
        $values = [];
        $key    = ($this->request->qtype === 'eq')
            ? $this->request->key
            : null;

        foreach ($keys as $value) {
            $entry = new IndexEntry();

            $entry->indexKey  = $key;
            $entry->objectKey = $value;

            $values[] = $entry;
        }

        return new ArrayIterator($values);
    }
837070
public function forgetMany(array $keys)
    {
        $this->connection()->del($this->prefixKeys($keys));

        return array_fill_keys($keys, true);
    }
745007
protected function getAnyKey(array $keys)
    {
        foreach($keys as $key)
        {
            $value = $this->getValue($key);

            if(!is_null($value))
            {
                return $value;
            }
        }
    }
314590
public function mget($keys)
	{
	    $res = [];
	    if (is_array($keys)) {
	        foreach ($keys as $k) {
	            $res[$k] = $this->get($k);
	        }
	    } else {
	        $res[$keys] = $this->get($keys);
	    }
	    
	    return $res;
	}
469436
public function getMany(...$keys)
    {
        $ret = [];

        foreach ($this->normalizeKeys($keys) as $key) {
            if ($this->has($key)) {
                $ret[$key] = $this->proxy->{$key};
            }
        }

        return $ret;
    }
932278
public function getMany($keys)
    {
        if (!is_array($keys))
            $keys = func_get_args();

        $newArray = array();

        foreach($keys as $key) {
            if (isset($_SESSION[$key])) {
                $newArray[$key] = $_SESSION[$key];
            }
        }

        return $newArray;
    }
1068031
public function allParamsFor(array $keys): array
    {
        $params = [];
        foreach ($keys as $key) {
            if (isset($this->params[$key])) {
                $params[$key] = $this->params[$key];
            }
        }

        return $params;
    }