phpbase64_decode()是什么加密啊?参数是什么
phpbase64_decode()是什么加密啊?参数是什么?
1、base64_decode() 函数在PHP中是解码的意思、对使用 MIME base64 编码的数据进行解码。
使用base64_decode()函数对简单字符串进行解码。
$str = VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==
echo base64_decode($str)
?>
此示例将显示:
This is an encoded string
2、与之相反,base64_encode(),使用 base64 对 data 进行编码。
使用base64_encode()函数对简单字符串进行编码。
$str = This is an encoded string
echo base64_encode($str)
?>
此示例将显示:
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==