锟斤拷同 string.* 锟斤拷锟斤拷锟斤拷锟斤拷convert.* 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫就猴拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷转锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.0.0 锟斤拷拥摹锟斤拷锟斤拷锟街革拷锟斤拷锟斤拷锟斤拷锟斤拷母锟斤拷锟斤拷锟较拷锟斤拷锟轿匡拷锟矫猴拷锟斤拷锟斤拷锟街诧拷页锟斤拷
convert.base64-encode锟斤拷
convert.base64-decode使锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷同锟节分憋拷锟斤拷
base64_encode()锟斤拷
base64_decode()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷
convert.base64-encode支锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷牟锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
line-length
锟斤拷base64 锟斤拷锟斤拷锟斤拷锟斤拷锟�
line-length
锟斤拷锟街凤拷为 锟斤拷锟饺讹拷锟截成块。锟斤拷锟斤拷锟斤拷锟斤拷锟�
line-break-chars
锟斤拷每锟介将锟斤拷锟矫革拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷些锟斤拷锟斤拷锟斤拷效锟斤拷锟斤拷锟斤拷
base64_encode()锟劫硷拷锟斤拷
chunk_split()锟斤拷同锟斤拷
Example #1 convert.base64-encode & convert.base64-decode
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'convert.base64-encode');
fwrite($fp, "This is a test.\n");
fclose($fp);
/* Outputs: VGhpcyBpcyBhIHRlc3QuCg== */
$param = array('line-length' => 8, 'line-break-chars' => "\r\n");
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE, $param);
fwrite($fp, "This is a test.\n");
fclose($fp);
/* Outputs: VGhpcyBp
: cyBhIHRl
: c3QuCg== */
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'convert.base64-decode');
fwrite($fp, "VGhpcyBpcyBhIHRlc3QuCg==");
fclose($fp);
/* Outputs: This is a test. */
?>
convert.quoted-printable-encode锟斤拷
convert.quoted-printable-decode使锟矫此癸拷锟斤拷锟斤拷锟斤拷 decode 锟芥本锟斤拷同锟斤拷锟斤拷
quoted_printable_decode()锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫碉拷锟斤拷锟斤拷锟捷★拷没锟叫猴拷
convert.quoted-printable-encode锟斤拷锟接︼拷暮锟斤拷锟斤拷锟�
convert.quoted-printable-encode支锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷牟锟斤拷锟斤拷锟斤拷锟斤拷锟街э拷趾锟�
convert.base64-encode一锟斤拷锟侥革拷锟接诧拷锟斤拷锟解,
convert.quoted-printable-encode锟斤拷支锟街诧拷锟斤拷锟斤拷锟斤拷
binary
锟斤拷
force-encode-first
锟斤拷
convert.base64-decode只支锟斤拷
line-break-chars
锟斤拷锟斤拷锟斤拷为锟接憋拷锟斤拷锟截猴拷锟叫帮拷锟斤拷锟斤拷锟斤拷锟斤拷锟绞撅拷锟�
Example #2 convert.quoted-printable-encode & convert.quoted-printable-decode
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'convert.quoted-printable-encode');
fwrite($fp, "This is a test.\n");
/* Outputs: =This is a test.=0A */
?>