PHP base64_decode()

base64_decode — Decodes data encoded with MIME base64

Function

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

Parameters

$data - The encoded data.
$strict - Returns FALSE if input contains character from outside the base64 alphabet.

Return value

Returns the original data or FALSE on failure. The returned data may be binary.

Example

<?php
  $str = 'YmFzZTY0IGVuY29kZWQgc3RyaW5n';
  echo base64_decode($str);
?>

Github

See also: