<?php $data = "我爱PHP";//解码前的值 print("我爱PHP: " . base64_encode($data)); //进行解码 print("<hr>"); $text = "ztKwrlBIUA"; print("ztKwrlBIUA: " . base64_decode($text)); //编码 ?>
<?php $data = "我爱PHP";//解码前的值 print("我爱PHP: " . base64_encode($data)); //进行解码 print("<hr>"); $text = "ztKwrlBIUA"; print("ztKwrlBIUA: " . base64_decode($text)); //编码 ?>