base64_decode_toarray()
Learn how to use the base64_decode_toarray() function to decode a base64 string into an array of long values.
Decodes a base64 string to an array of long values.
Syntax
base64_decode_toarray(base64_string)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| base64_string | string | ✔️ | The value to decode from base64 to an array of long values. |
Returns
Returns an array of long values decoded from a base64 string.
Example
print Quine=base64_decode_toarray("S3VzdG8=")
// 'K', 'u', 's', 't', 'o'
Output
| Quine |
|---|
| [75,117,115,116,111] |
Related content
- To decode base64 strings to a UTF-8 string, see base64_decode_tostring()
- To encode strings to a base64 string, see base64_encode_tostring()
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.