base64_decode_toarray()

Decodes a base64 string to an array of long values.

Syntax

base64_decode_toarray(String)

Arguments

  • String: Input string to be decoded from base64 to UTF8-8 string.

Returns

Returns array of long values ecoded from base64 string.

Example

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

Trying to decode a base64 string which was generated from invalid UTF-8 encoding will return null:

print Empty=base64_decode_toarray("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")
Empty