php base64_decode 与base64_encode
base64_decode
( PHP 4中, PHP 5中)
base64_decode -解码数据的Base64编码的MIME
描述
字符串base64_decode (字符串$数据[ ,布尔$严格=虚假] )
解码一BASE64编码数据。
参数
数据
编码数据。
严格
返回FALSE如果输入包含字符以外的一个base64字母表。
返回值
返回原始数据或FALSE的失败。返回的数据可能是二进制。
修改
版本说明
5.2.0严格的补充
实例
例如# 1 base64_decode ( )的例子
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
?>
The above example will output:
This is an encoded string
base64_encode( PHP 4中, PHP 5中)
base64_encode -使用MIME编码的数据进行Base64
描述
字符串base64_encode (字符串$数据)
编码特定数据进行Base64 。
这种编码是为了使二进制数据生存运输通过运输层不支持8 - bit编码,如电子邮件机构。
进行Base64编码的数据大约需要33 %以上的空间比原始数据。
参数
数据
这些数据进行编码。
返回值
编码数据,作为一个字符串。
实例
例如# 1 base64_encode ( )的例子
$str = 'This is an encoded string';
echo base64_encode($str);
?>
The above example will output:
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version
Chinese version, very easy to use