![]() |
The imap_base64() function is an inbuilt function in PHP that is used to decode the base64 encoded text. Syntax: imap_base64(string $string)
Parameters: This function accepts only one parameter which is described below.
Return Values: The imap_base64() function returns the decoded string if this function successfully executes otherwise this function will return “false”. Program 1: The following program demonstrates the imap_base64() function. Note: Before using this function, check if this function is available in your environment or not. If not then type this command apt-get install php-imap
For installation, please refer to the following also. Program 1: PHP
Output: Decoded Data: Decode this simple string
Program 2: The following program demonstrates the imap_base64() function. PHP
Output: Both strings are not equal
Reference: https://www.php.net/manual/en/function.imap-base64.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |