• PHP Video Tutorials

PHP - base64_decode() Function



base64_decode() function can decode the data encoded with MIME base64.

Syntax

string base64_decode( string $data [, bool $strict = false ] )

base64_decode() function can decode a base64 encoded data.

base64_decode() function can return an original data, or false on failure, and returned data may be binary.

Example

<?php
   $str = "VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==";
   echo base64_decode($str);
?>
php_function_reference.htm
Advertisements