Home  >  Article  >  Backend Development  >  Encoding and decoding functions_PHP tutorial

Encoding and decoding functions_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:05:01898browse





Encoding and decoding functions


$data = "VGhpcyBpcyBhIAptdWx0aS1saW5lIG1lc3NhZ2UK";//Value before decoding
print ($data);
print(base64_decode($data)); //Decoding
?> ;
print("


");
$text = "This is a multi-line message";
print ($text);
print(base64_encode ($text)); //Encoding
?>




编码和解码函数

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445148.htmlTechArticleHTML HEAD TITLE encoding and decoding function/TITLE /HEAD BODY ? $data = "VGhpcyBpcyBhIAptdWx0aS1saW5lIG1lc3NhZ2UK";//before decoding The value of print ($data); print(base64_decode($data)); //Decode...
Statement:
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