php base64_decode 与base64_encode
base64_decode
( PHP 4中, PHP 5中)
base64_decode -解码数据的Base64编码的MIME
描述
字符串base64_decode (字符串$数据[ ,布尔$严格=虚假] )
解码一BASE64编码数据。
参数
数据
编码数据。
严格
返回FALSE如果输入包含字符以外的一个base64字母表。
返回值
返回原始数据或FALSE的失败。返回的数据可能是二进制。
修改
版本说明
5.2.0严格的补充
实例
例如# 1 base64_decode ( )的例子
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
?>
The above example will output:
this is an encoded string
base64_encode$str = 'this is an encoded string';
echo base64_encode($str);
?>
The above example will output:
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号