base64_encode(3) [php man page]
BASE64_ENCODE(3) 1 BASE64_ENCODE(3) base64_encode - Encodes data with MIME base64 SYNOPSIS
string base64_encode (string $data) DESCRIPTION
Encodes the given $data with base64. This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies. Base64-encoded data takes about 33% more space than the original data. PARAMETERS
o $data - The data to encode. RETURN VALUES
The encoded data, as a string or FALSE on failure. EXAMPLES
Example #1 base64_encode(3) example <?php $str = 'This is an encoded string'; echo base64_encode($str); ?> The above example will output: VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw== SEE ALSO
base64_decode(3), chunk_split(3), convert_uuencode(3), RFC 2045 section 6.8. PHP Documentation Group BASE64_ENCODE(3)
Check Out this Related Man Page
MIME::QuotedPrint(3pm) Perl Programmers Reference Guide MIME::QuotedPrint(3pm) NAME
MIME::QuotedPrint - Encoding and decoding of quoted-printable strings SYNOPSIS
use MIME::QuotedPrint; $encoded = encode_qp($decoded); $decoded = decode_qp($encoded); DESCRIPTION
This module provides functions to encode and decode strings into and from the quoted-printable encoding specified in RFC 2045 - MIME (Multipurpose Internet Mail Extensions). The quoted-printable encoding is intended to represent data that largely consists of bytes that correspond to printable characters in the ASCII character set. Each non-printable character (as defined by English Americans) is represented by a triplet consisting of the character "=" followed by two hexadecimal digits. The following functions are provided: encode_qp( $str) encode_qp( $str, $eol) encode_qp( $str, $eol, $binmode ) This function returns an encoded version of the string ($str) given as argument. The second argument ($eol) is the line-ending sequence to use. It is optional and defaults to " ". Every occurrence of " " is replaced with this string, and it is also used for additional "soft line breaks" to ensure that no line end up longer than 76 characters. Pass it as "