public function remove($keys)
    {
        $keys = (array) $keys; // Cast all the things
        $this->keys = array_filter($this->keys(), function ($key) use ($keys) {
            foreach ($keys as $remove) {
                if (preg_match('/^'.preg_quote($remove, '/').'(\..+)?$/', $key)) {
                    // Keys and descendant keys will be removed
                    return false;
                }
            }

            return true;
        });
    }
public function remove($keys)
    {
        $keys = (array) $keys; // Cast all the things
        $this->keys = array_filter($this->keys(), function ($key) use ($keys) {
            foreach ($keys as $remove) {
                if (preg_match('/^'.preg_quote($remove, '/').'(\..+)?$/', $key)) {
                    // Keys and descendant keys will be removed
                    return false;
                }
            }

            return true;
        });
    }
public function remove ( $ keys ) { $ keys = ( array ) $ keys ; // Cast all the things $ this -> keys = array_filter ( $ this -> keys ( ) , function ( $ key ) use ( $ keys ) { foreach ( $ keys as $ remove ) { if ( preg_match ( '/^' . preg_quote ( $ remove , '/' ) . '(\..+)?$/' , $ key ) ) { // Keys and descendant keys will be removed return false ; } } return true ; } ) ; }
Remove one or more keys.

@param array|string $keys
Remove one or more keys .