php中convert_uuencode()與convert_uuencode函數(shù)用法實例
本文實例講述了php中convert_uuencode()與convert_uuencode函數(shù)用法。分享給大家供大家參考。具體分析如下:
onvert_uudecode() 函數(shù)對 uuencode 編碼的字符串進行解碼.
語法:convert_uudecode(string),代碼如下:
$result=convert_uudecode($str); //解碼
echo $result; //輸出結(jié)果數(shù)據(jù),hello world!
convert_uuencode() 函數(shù)使用 uuencode 算法對字符串進行編碼.
語法:convert_uuencode(string),代碼如下:
echo $str; //輸出原始字符串
$result=convert_uuencode($str); //執(zhí)行uuencode操作
echo $result;
注釋:本函數(shù)把所有字符串(包括二進制的)轉(zhuǎn)換為可打印的字符串,確保其網(wǎng)絡(luò)傳輸?shù)陌踩?uuencode 的字符串比原字符串增大大約 35%.
希望本文所述對大家的PHP程序設(shè)計有所幫助。
- php使用fgetcsv讀取csv文件出現(xiàn)亂碼的解決方法
- PHP fgetcsv 定義和用法(附windows與linux下兼容問題)
- PHP中SimpleXML函數(shù)用法分析
- PHP中array_slice函數(shù)用法實例詳解
- php中in_array函數(shù)用法探究
- PHP中mysql_field_type()函數(shù)用法
- php中mt_rand()隨機數(shù)函數(shù)用法
- PHP中substr()與explode()函數(shù)用法分析
- php目錄遍歷函數(shù)opendir用法實例
- php中ftp_chdir與ftp_cdup函數(shù)用法
- php中fgetcsv()函數(shù)用法實例
相關(guān)文章
dede3.1分頁文字采集過濾規(guī)則詳說(圖文教程)續(xù)四
dede3.1分頁文字采集過濾規(guī)則詳說(圖文教程)續(xù)四...2007-04-04解決PHP程序運行時:Fatal error: Maximum execution time of 30 seconds
最近做的程序中涉及到的循環(huán)比較多且處理的情況較復(fù)雜,在運行程序時出現(xiàn)執(zhí)行超時提示如下:Fatal error: Maximum execution time of 30 seconds exceeded in D:\php\AppServ\www\sum3\test.php on line 3通過在網(wǎng)上搜索,找到了解決方法和大家分享,下面來一起看看吧。2016-11-11解析WordPress中函數(shù)鉤子hook的作用及基本用法
這篇文章主要介紹了解析WordPress中函數(shù)鉤子hook的作用及基本用法,hook是WordPress中調(diào)用函數(shù)的重要用法,也是插件開發(fā)的基礎(chǔ),需要的朋友可以參考下2015-12-12