public function remove($startIndex, $length)
    {
        $start = UTF8::substr
        (
            (string)$this->str,
            0,
            $startIndex,
            $this->str->getEncoding()
        );

        $end = UTF8::substr
        (
            (string)$this->str,
            $startIndex + $length,
            $this->str->getLength(),
            $this->str->getEncoding()
        );

        $this->str = new Str($start.$end);

        return $this;
    }
public function remove($startIndex, $length)
    {
        $start = UTF8::substr
        (
            (string)$this->str,
            0,
            $startIndex,
            $this->str->getEncoding()
        );

        $end = UTF8::substr
        (
            (string)$this->str,
            $startIndex + $length,
            $this->str->getLength(),
            $this->str->getEncoding()
        );

        $this->str = new Str($start.$end);

        return $this;
    }
public function remove ( $ startIndex , $ length ) { $ start = UTF8 :: substr ( ( string ) $ this -> str , 0 , $ startIndex , $ this -> str -> getEncoding ( ) ) ; $ end = UTF8 :: substr ( ( string ) $ this -> str , $ startIndex + $ length , $ this -> str -> getLength ( ) , $ this -> str -> getEncoding ( ) ) ; $ this -> str = new Str ( $ start . $ end ) ; return $ this ; }
Removes the specified range of characters from this instance.

@param  int    $startIndex The zero-based position in this instance
where removal begins.

@param  int    $length     The number of characters to remove.

@return static
Removes the specified range of characters from this instance .