PHP » PYTHON |
login |
register |
about
|
PYTHON base64_decode
is this article helpful?
|
Python replacement for PHP's base64_decode
[
edit
| history
]
#Python 2.x: result = data.decode('base64') #Python 3.1: import base64 result = base64.decodestring(data) #Python >3.1 import base64 # as str base64.b64decode(data).decode('utf-8') or # as bytes base64.b64decode(data) base64_decode(PHP 4, PHP 5) base64_decode — Decodes data encoded with MIME base64 Description
string base64_decode
( string $data
[, bool $strict= false
] )
Decodes a base64 encoded data . Parameters
Return ValuesReturns the original data or FALSE on failure. The returned data may be binary. Changelog
Examples
Example #1 base64_decode() example
<?php The above example will output: This is an encoded string
|
more
Recently updated
more
Most requested
more
Last requests
|