<HTML>
<HEAD>
<TITLE>編碼和解碼函數</TITLE>
</HEAD>
<BODY>
<?
$data = "VGhpcyBpcyBhIAptdWx0aS1saW5lIG1lc3NhZ2UK";//解碼前的值
print ($data);
print(base64_decode($data)); //進行解碼
?>
<?
print("<hr>");
$text = "這是一個多行信息";
print ($text);
print(base64_encode($text)); //編碼
?>
</BODY>
</HTML>