public function reject(Closure $callback)
    {
        $hash = $this->create();

        foreach ($this as $key => $value) {
            if ($callback($value, $key) == false) {
                $hash[$key] = $value;
            }
        }

        return $hash;
    }
public function reject(Closure $callback)
    {
        $hash = $this->create();

        foreach ($this as $key => $value) {
            if ($callback($value, $key) == false) {
                $hash[$key] = $value;
            }
        }

        return $hash;
    }
public function reject ( Closure $ callback ) { $ hash = $ this -> create ( ) ; foreach ( $ this as $ key => $ value ) { if ( $ callback ( $ value , $ key ) == false ) { $ hash [ $ key ] = $ value ; } } return $ hash ; }
Rejects elements if the given function evaluates to true

@param Closure $callable function

@return Hash the new hash containing the non rejected elements
Rejects elements if the given function evaluates to true