This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:base64_encode [2017/03/31 12:45] jeff |
uphp:functions:base64_encode [2017/05/08 14:17] jeff |
||
---|---|---|---|
Line 1: | Line 1: | ||
======base64_encode====== | ======base64_encode====== | ||
- | < | ||
- | Return the base64-encoded version of a string | + | < |
+ | |||
+ | Return the base64-encoded version of a < | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | <span style=" | + | < |
- | < | + | <span style=" |
+ | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <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, | 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==== | ====Parameter==== | ||
- | < | ||
- | ====Return | + | < |
- | MIME Base64 encoded string (or 0 for error) | + | |
+ | ====Return | ||
+ | |||
+ | < | ||
====Example==== | ====Example==== | ||
+ | |||
<code php> | <code php> | ||
<? | <? | ||
Line 37: | Line 43: | ||
====See Also==== | ====See Also==== | ||
- | [[base64_decode()]] - Decode a base64-encoded string | + | [[base64_decode()]] - Decode a base64-encoded |