![]() |
The imap_binary() function is an inbuilt function in PHP that is used to convert the 8-bit string into the base64 encoding. This function is used by some IMAP servers to represent mailbox names that contain non-ASCII characters or certain ASCII characters that are special in IMAP. Syntax: imap_binary(string $string) : string | false Parameters: This function accepts only one parameter which is described below.
Return Values: The imap_binary() function if successfully executed will return a base64 encoded string otherwise this function will return “false”. Note: Before using this function check if this is available in your environment or not. If not, then type this command apt-get install php-imap References:
Program 1: The following program demonstrates the imap_binary() function. PHP
Output: Original data: horje Program 2: The following program demonstrates the imap_binary() function. PHP
Output: Original UTF-7 data 1: &ZeVnLIqe- Reference: https://www.php.net/manual/en/function.imap-binary.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |