cvs: phpdoc-zh /reference/url/functions base64-decode.xml base64-encode.xml
| From: | Krazy Nio | Date: | Sun, 02 Nov 2003 14:05:20 +0000 |
| Subject: | cvs: phpdoc-zh /reference/url/functions base64-decode.xml base64-encode.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1767@lists.php.net to get a copy of this message | ||
nio Sun Nov 2 09:05:20 2003 EDT
Added files:
/phpdoc-zh/reference/url/functions base64-decode.xml
base64-encode.xml
Log:
Add files.
Index: phpdoc-zh/reference/url/functions/base64-decode.xml
+++ phpdoc-zh/reference/url/functions/base64-decode.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.6 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/url.xml, last change in rev 1.2 -->
<refentry id="function.base64-decode">
<refnamediv>
<refname>base64_decode</refname>
<refpurpose>¶ÔʹÓà MIME base64
±àÂëµÄÊý¾Ý½øÐнâÂë</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>string</type><methodname>base64_decode</methodname>
<methodparam><type>string</type><parameter>encoded_data</parameter></methodparam>
</methodsynopsis>
<para>
<function>base64_decode</function> ¶Ô
<parameter>encoded_data</parameter>
½øÐнâÂ룬·µ»ØÔʼÊý¾Ý£¬Ê§°ÜÔò·µ»Ø
&false;¡£·µ»ØµÄÊý¾Ý¿ÉÄÜÊǶþ½øÖƵġ£
</para>
<para>
<example>
<title><function>base64_decode</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
?>
]]>
</programlisting>
<para>
´ËʾÀý½«ÏÔʾ£º
</para>
<screen>
<![CDATA[
This is an encoded string
]]>
</screen>
</example>
</para>
<para>
²Î¼û <function>base64_encode</function> Óë
<ulink url="&url.rfc;2045">RFC 2045</ulink> 6.8 Õ½ڡ£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-zh/reference/url/functions/base64-encode.xml
+++ phpdoc-zh/reference/url/functions/base64-encode.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.5 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/url.xml, last change in rev 1.2 -->
<refentry id="function.base64-encode">
<refnamediv>
<refname>base64_encode</refname>
<refpurpose>ʹÓà MIME base64 ¶ÔÊý¾Ý½øÐбàÂë</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>string</type><methodname>base64_encode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
<function>base64_encode</function> returns
ʹÓà base64 ¶Ô <parameter>data</parameter>
½øÐбàÂë¡£Éè¼Æ´ËÖÖ±àÂëÊÇΪÁËʹ¶þ½øÖÆÊý¾Ý¿ÉÒÔͨ¹ý·Ç´¿
8-bit µÄ´«Êä²ã´«Ê䣬ÀýÈçµç×ÓÓʼþµÄÖ÷Ìå¡£
</para>
<para>
Base64-encoded Êý¾ÝÒª±ÈÔʼÊý¾Ý¶àÕ¼Óà 33% ×óÓҵĿռ䡣
</para>
<para>
<example>
<title><function>base64_encode</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
$str = 'This is an encoded string';
echo base64_encode($str);
?>
]]>
</programlisting>
<para>
´ËʾÀý½«ÏÔʾ£º
</para>
<screen>
<![CDATA[
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==
]]>
</screen>
</example>
</para>
<para>
²Î¼û
<function>base64_decode</function>¡¢<function>chunk_split</function>
Óë
<ulink url="&url.rfc;2045">RFC 2045</ulink> 6.8 Õ½ڡ£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->