public static function base64Decode($data, $url = true)
    {
        if ($url) {
            return base64_decode(strtr($data, '-_', '+/'));
        } else {
            return base64_decode($data);
        }
    }
public static function base64Decode($data, $url = true)
    {
        if ($url) {
            return base64_decode(strtr($data, '-_', '+/'));
        } else {
            return base64_decode($data);
        }
    }
public static function base64Decode ( $ data , $ url = true ) { if ( $ url ) { return base64_decode ( strtr ( $ data , '-_' , '+/' ) ) ; } else { return base64_decode ( $ data ) ; } }
Decode base64 encoded string.

@param string $data
Base64 encoded string..
@param bool $url
Whether to replace '-' and '_' with '+' and '/'.
@return string Original string.
Decode base64 encoded string .