Home > Backend Development > PHP Tutorial > 编码和解码函数_PHP

编码和解码函数_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 12:35:11
Original
836 people have browsed it



编码和解码函数



 $data = "VGhpcyBpcyBhIAptdWx0aS1saW5lIG1lc3NhZ2UK";//解码前的值
 print ($data);
 print(base64_decode($data));      //进行解码
?>

 print("
");
 $text = "这是一个多行信息\n";
 print ($text);
 print(base64_encode($text));      //编码
?>


编码和解码函数
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template