downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<URL Functionsbase64_encode>
Last updated: Thu, 26 Jun 2008

base64_decode

(PHP 4, PHP 5)

base64_decode — Decodes data encoded with MIME base64

Description

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

Decodes a base64 encoded data .

Parameters

data

The decoded data.

strict

Returns FALSE if input contains space or some other separator.

Return Values

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

ChangeLog

Version Description
5.2.0 strict added

Examples

Example #1 base64_decode() example

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

The above example will output:

This is an encoded string

See Also



add a noteadd a note User Contributed Notes
Decodes data encoded with MIME base64
There are no user contributed notes for this page.




<URL Functionsbase64_encode>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs