📜  PHP | quoted_printable_encode()函数

📅  最后修改于: 2022-05-13 01:56:19.376000             🧑  作者: Mango

PHP | quoted_printable_encode()函数

quoted_printable_encode()函数是PHP中的一个内置函数,用于将 8 位字符串转换为带引号的可打印字符串。

句法:

quoted_printable_encode( $str )

参数:此函数接受单个参数$str ,这是必需的。它表示需要转换的 8 位字符串。

返回值:此函数返回带引号的可打印字符串。

下面的程序说明了PHP中的quoted_printable_encode()函数:

程序:


输出:
H=C3=83=C2=ABllo World!

应用: quoted_printable_encode()函数可在邮件系统中用于对任何消息进行编码,然后在接收者端使用quoted_printable_decode() 对其进行解码。

相关文章:

  • PHP | similar_text()函数
  • PHP | addcslashes()函数

参考: 函数 : PHP 。 PHP