Sep 05, 2010 Author: MYSQL Expert

base64_decode — Decodes data encoded with MIME base64.
Decodes a base64 encoded data.
string base64_decode ( string $data [, bool $strict = false ] ) Returns FALSE if input contains character from outside the base64 alphabet. Returns the original data or FALSE on failure. The returned data may be binary.

$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
The above example will output:
This is an encoded string

tags: base64 decode

views 5492
  1. Add New Comment