base64_decode_toarray()base64_decode_toarray()

将 base64 字符串解码为长值的数组。Decodes a base64 string to an array of long values.

语法Syntax

base64_decode_toarray(String)base64_decode_toarray(String)

参数Arguments

  • String:要从 base64 解码为 UTF8 字符串的输入字符串。String: Input string to be decoded from base64 to UTF8 string.

返回Returns

返回从 base64 字符串解码而来的长值数组。Returns an array of long values decoded from a base64 string.

示例Example

print Quine=base64_decode_toarray("S3VzdG8=")  
// 'K', 'u', 's', 't', 'o'
QuineQuine
[75,117,115,116,111][75,117,115,116,111]

如果尝试对由无效的 UTF-8 编码生成的 base64 字符串进行解码,将返回“null”:If you try to decode a base64 string that was generated from an invalid UTF-8 encoding, "null" will be returned:

print Empty=base64_decode_toarray("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")
Empty