base64_decode_tostring()

将 base64 字符串解码为 UTF-8 字符串。

弃用的别名:base64_decodestring()

语法

base64_decode_tostring(base64_string)

详细了解语法约定

参数

客户 类型​​ 必需 描述
base64_string string 要从 base64 解码为 UTF-8 字符串的值。

返回

返回从 base64 字符串解码的 UTF-8 字符串。

示例

print Quine=base64_decode_tostring("S3VzdG8=")

输出

Quine
Kusto

尝试对通过无效 UTF-8 编码生成的 base64 字符串进行解码会返回 null:

print Empty=base64_decode_tostring("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")

输出