function mosCompressID($ID) { return Base64_encode(pack("H*", $ID)); }
function adopt($text) { return '=?UTF-8?B?' . Base64_encode($text) . '?='; }
/** * encode string * * @param string $value */ public static function myEncode($value) { return urlencode(Base64_encode(trim($value))); }