这两个函数在php中是用得对php代码进行加密与解密码的base64_encode是加密,尔base64_decode是解密了,下面我们看两个简单实例.
base64_encode语法:string base64_decode(string data);
- $str='d3d3ljexmwnulm5ldnk7vtu9zlpmzfg=';
- echo base64_decode($str);
base64_encode语法:string base64_encode(string data);
- $str='www.phpfensi.com php粉丝网';
- echo base64_encode($str);
|