public function getChars(int $begin, int $end, array &$destination, int $dstBegin): void
    {
        $length = $end - $begin + 1;

        for ($i = 0; $i < $length; $i++) {
            $destination[$dstBegin + $i] = $this->charAt($begin + $i);
        }
    }
public function getChars(int $begin, int $end, array &$destination, int $dstBegin): void
    {
        $length = $end - $begin + 1;

        for ($i = 0; $i < $length; $i++) {
            $destination[$dstBegin + $i] = $this->charAt($begin + $i);
        }
    }
public function getChars ( int $ begin , int $ end , array & $ destination , int $ dstBegin ) : void { $ length = $ end - $ begin + 1 ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ destination [ $ dstBegin + $ i ] = $ this -> charAt ( $ begin + $ i ) ; } }
Copies characters from this string into the destination array

@param int         $begin
@param int         $end
@param Character[] $destination
@param int         $dstBegin
@return void
@throws InvalidArgumentException
@throws OutOfBoundsException
Copies characters from this string into the destination array