略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: imap_binary

2024-12-22

imap_binary

(PHP 4, PHP 5, PHP 7, PHP 8)

imap_binaryConvert an 8bit string to a base64 string

说明

imap_binary(string $string): string|false

Convert an 8bit string to a base64 string according to » RFC2045, Section 6.8.

参数

string

The 8bit string

返回值

Returns a base64 encoded string, 或者在失败时返回 false.

参见

add a noteadd a note

User Contributed Notes 1 note

up
-8
phunction.sf.net
12 years ago
Calling this function is the same as doing:

<?php

chunk_split
(base64_encode($string), 60);

?>

官方地址:https://www.php.net/manual/en/function.imap-binary.php

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