This shows you the differences between two versions of the page.
uphp:functions:base64_encode [2017/04/06 11:42] jeff |
uphp:functions:base64_encode [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======base64_encode====== | ||
- | < | ||
- | |||
- | Return the base64-encoded version of a < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | [[base64_encode]] ( | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | </ | ||
- | |||
- | Encodes data using MIME Base64((The term Base64 is generic, and there are many implementations. MIME, which stands for Multi-purpose Internet Mail Extensions, is the most common that is seen today. It is used wherever there is a need to transmit strings that might contain special characters that would otherwise be interpreted, | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | < | ||
- | |||
- | ====Return Value==== | ||
- | |||
- | MIME Base64 encoded < | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $data=" | ||
- | print(base64_encode($data)); | ||
- | ?> | ||
- | </ | ||
- | |||
- | The above example will output: | ||
- | < | ||
- | VGhpcyB3aWxsIGJlIGFuIGVuY29kZWQgc3RyaW5n | ||
- | </ | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[base64_decode()]] - Decode a base64-encoded < |