PYTHON

is this article helpful?
|
Python replacement for PHP's [ edit | history ]
import base64
def base64_encode(x):
    return base64.encodestring(x).strip()

PHP

PHP original manual for [ show | php.net ]