<hr> <br><br><title>编码和解码函数</title> <br><br><br><br> $data = "VGhpcyBpcyBhIAptdWx0aS1saW5lIG1lc3NhZ2UK";//解码前的值<br> print ($data);<br> print(base64_decode($data)); //进行解码<br>?><br><br> print("<hr>");<br> $text = "这是一个多行信息\n";<br> print ($text);<br> print(base64_encode($text)); //编码<br>?><br><br> <hr> <img alt="编码和解码函数" hspace="0" src="http://img.bitscn.com/upimg/php/20070123/11E54431X013132.jpg" align="baseline" border="0">