convert_uudecode() 函數(shù)對 uuencode 編碼的字符串進行解碼.

語法:convert_uudecode(string),代碼如下:

  1. $str=",2&5l;&/@=v]r;&0a `";         //定義uuencode編碼字符串 
  2. $result=convert_uudecode($str);        //解碼 
  3. echo $result;            //輸出結(jié)果數(shù)據(jù),hello world! 

convert_uuencode() 函數(shù)使用 uuencode 算法對字符串進行編碼.

語法:convert_uuencode(string),代碼如下:

  1. $str="hello world";          //定義字符串 
  2. echo $str;            //輸出原始字符串 
  3. //開源代碼phpfensi.com 
  4. $result=convert_uuencode($str);       //執(zhí)行uuencode操作 
  5. echo $result;  

注釋:本函數(shù)把所有字符串(包括二進制的)轉(zhuǎn)換為可打印的字符串,確保其網(wǎng)絡(luò)傳輸?shù)?a >安全,uuencode 的字符串比原字符串增大大約 35%.

轉(zhuǎn)載請注明來源:php convert_uuencode() 與 convert_uuencode 函數(shù)

  哈爾濱品用軟件有限公司致力于為哈爾濱的中小企業(yè)制作大氣、美觀的優(yōu)秀網(wǎng)站,并且能夠搭建符合百度排名規(guī)范的網(wǎng)站基底,使您的網(wǎng)站無需額外費用,即可穩(wěn)步提升排名至首頁。歡迎體驗最佳的哈爾濱網(wǎng)站建設(shè)。