base64_decode_toguid()
Decodes a base64 string to a GUID.
Syntax
base64_decode_toguid(String)
Arguments
- String: Input string to be decoded from base64 to a GUID.
Returns
Returns a GUID decoded from a base64 string.
- To encode a GUID to a base64 string, see base64_encode_fromguid()
Example
print Quine = base64_decode_toguid("JpbpECu8dUy7Pv5gbeJXAA==")
| Quine |
|---|
| 10e99626-bc2b-754c-bb3e-fe606de25700 |
If you try to decode an invalid base64 string, "null" will be returned:
print Empty = base64_decode_toarray("abcd1231")
| Empty |
|---|