public function toTabs($tabLength = 4)
    {
        return $this->newSelf
        (
            UTF8::str_replace
            (
                UTF8::str_repeat(' ', $tabLength),
                "\t",
                $this->scalarString
            )
        );
    }
public function toTabs($tabLength = 4)
    {
        return $this->newSelf
        (
            UTF8::str_replace
            (
                UTF8::str_repeat(' ', $tabLength),
                "\t",
                $this->scalarString
            )
        );
    }
public function toTabs ( $ tabLength = 4 ) { return $ this -> newSelf ( UTF8 :: str_replace ( UTF8 :: str_repeat ( ' ' , $ tabLength ) , "\t" , $ this -> scalarString ) ) ; }
Converts spaces to tabs.

Replaces each occurrence of some consecutive number of spaces,
as defined by $tabLength, to a tab. By default, each 4 consecutive
spaces are converted to a tab.

@param  int    $tabLength Number of spaces to replace with a tab.

@return static
Converts spaces to tabs .