略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Stream 函数

2025-02-27

Stream 函数

目录

添加备注

用户贡献的备注 1 note

up
10
marcus at synchromedia dot co dot uk
17 years ago
I can't find any real documentation on the quoted-printable-encode stream filter, but I've gathered info from several places. It seems there are 4 options that can be passed in the param array as in my other note on this subject:

line-length: integer, simply sets line length before a soft break is inserted
line-break-chars: Which char or chars to consider as a line break - note that "\r\n" will only match CRLF, not CR or LF, so make sure it matches your content.
binary: boolean, hex encodes all control chars, including spaces and line breaks, but leaves alphanumerics untouched
force-encode-first: Forcibly hex-encodes the first char on each line, even if it's alphanumeric. This is useful for avoiding corruption in some incompetent mail servers, like Exchange.

官方地址:https://www.php.net/manual/en/ref.stream.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3