src/Collection/CollectionFlattener.php
public function separator(string $sep): CollectionFlattener
    {
        if (mb_strlen($sep) != 1 || $sep === '*') {
            throw new Exception(__CLASS__.': Separator must be 1 character and cannot be an asterisk (*)');
        }
        $this->separator = $sep;
        return $this;
    }
public function separator(string $sep): CollectionFlattener
    {
        if (mb_strlen($sep) != 1 || $sep === '*') {
            throw new Exception(__CLASS__.': Separator must be 1 character and cannot be an asterisk (*)');
        }
        $this->separator = $sep;
        return $this;
    }
public function separator ( string $ sep ) : CollectionFlattener { if ( mb_strlen ( $ sep ) != 1 || $ sep === '*' ) { throw new Exception ( __CLASS__ . ': Separator must be 1 character and cannot be an asterisk (*)' ) ; } $ this -> separator = $ sep ; return $ this ; }
Change keys separators
@param string $sep
@return $this
@throws Exception
Change keys separators