base64_encode_tostring()
This article describes base64_encode_tostring().
Encodes a string as base64 string.
Syntax
base64_encode_tostring(string)
Parameters
| Name | Type | Required | Description | 
|---|---|---|---|
| string | string | ✔️ | The value to encode as a base64 string. | 
Returns
Returns string encoded as a base64 string.
Example
print Quine=base64_encode_tostring("Kusto")
Output
| Quine | 
|---|
| S3VzdG8= | 
Related content
- To decode base64 strings to UTF-8 strings, see base64_decode_tostring().
 - To decode base64 strings to an array of long values, see base64_decode_toarray().
 
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.