php中 base64_decode與base64_encode加密解密函數


base64_encode是加密,而base64_decode是解密

base64_encode    語法:string base64_encode(string data);

$string='www.zhix.net智昕網絡'; //定義字符串
echo base64_encode($string);  // 輸出編碼后的內容為 d3d3LnpoaXgubmV05pm65piV572R57uc

 

base64_decode    語法:string base64_decode(string data);

$string='d3d3LnpoaXgubmV05pm65piV572R57uc';     //定義字符串
echo base64_decode($string); //輸出解碼后的內容 www.zhix.net智昕網絡

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM