src/Valuestore.php
public function flushStartingWith(string $startingWith = '')
    {
        $newContent = [];

        if ($startingWith !== '') {
            $newContent = $this->filterKeysNotStartingWith($this->all(), $startingWith);
        }

        return $this->setContent($newContent);
    }
public function flushStartingWith(string $startingWith = '')
    {
        $newContent = [];

        if ($startingWith !== '') {
            $newContent = $this->filterKeysNotStartingWith($this->all(), $startingWith);
        }

        return $this->setContent($newContent);
    }
public function flushStartingWith ( string $ startingWith = '' ) { $ newContent = [ ] ; if ( $ startingWith !== '' ) { $ newContent = $ this -> filterKeysNotStartingWith ( $ this -> all ( ) , $ startingWith ) ; } return $ this -> setContent ( $ newContent ) ; }
Flush all values which keys start with a given string.

@param string $startingWith

@return $this
Flush all values which keys start with a given string .