base64_encode_fromguid()
Encodes a GUID to a base64 string.
Syntax
base64_encode_fromguid(GUID)
Arguments
- GUID: Input GUID to be encoded to a base64 string.
Returns
Returns a base64 string encoded from a GUID.
- To decode a base64 string to a GUID, see base64_decode_toguid()
- To create a GUID from a string, see toguid()
Example
print Quine = base64_encode_fromguid(toguid("ae3133f2-6e22-49ae-b06a-16e6a9b212eb"))
| Quine |
|---|
| 8jMxriJurkmwahbmqbIS6w== |
If you try to encode anything that isn't a GUID as below, an error will be thrown:
print Empty = base64_encode_fromguid("abcd1231")