php中base64_decode与base64_encode加密码 解密函数

作者:袖梨 2022-06-24
base64_encode语法: string base64_decode(string data);


*/

$str='d3d3ljexmwnulm5ldnk7vtu9zlpmzfg=';     //定义字符串
echo base64_decode($str); //www.111com.net一聚教程网         //输出解码后的内容

/*

base64_encode语法: string base64_encode(string data);


*/

$str='www.111com.net一聚教程网';         //定义字符串
echo base64_encode($str);  // d3d3ljexmwnulm5ldnk7vtu9zlpmzfg=       //输出编码后的内容

相关文章

精彩推荐