public function encode($numbers)
    {
        $chars = [];
        $alphabet = $this->alphabet;
        foreach ($numbers as $number) {
            if (isset($alphabet[$number])) {
                $chars[] = $alphabet[$number];
            } else {
                throw new InvalidBase64Input($number);
            }
        }
        return implode('', $chars);
    }
public function encode($numbers)
    {
        $chars = [];
        $alphabet = $this->alphabet;
        foreach ($numbers as $number) {
            if (isset($alphabet[$number])) {
                $chars[] = $alphabet[$number];
            } else {
                throw new InvalidBase64Input($number);
            }
        }
        return implode('', $chars);
    }
public function encode ( $ numbers ) { $ chars = [ ] ; $ alphabet = $ this -> alphabet ; foreach ( $ numbers as $ number ) { if ( isset ( $ alphabet [ $ number ] ) ) { $ chars [ ] = $ alphabet [ $ number ] ; } else { throw new InvalidBase64Input ( $ number ) ; } } return implode ( '' , $ chars ) ; }
Encodes a block of numbers to a base64-string

@param int[]|int $numbers
@return string
@throws \axy\codecs\base64vlq\errors\InvalidBase64Input
Encodes a block of numbers to a base64 - string