Exemplo n.º 1
0
 public function encodeString8bit($string, $version, $level)
 {
     if (string == NULL) {
         throw new Exception('empty string!');
         return NULL;
     }
     $input = new wechat_qrcode_QRinput($version, $level);
     if ($input == NULL) {
         return NULL;
     }
     $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
     if ($ret < 0) {
         unset($input);
         return NULL;
     }
     return $this->encodeInput($input);
 }