cvs: phpdoc-zh /reference/strings/functions bin2hex.xml chop.xml chr.xml chunk-split.xml
| From: | Krazy Nio | Date: | Thu, 22 Apr 2004 14:22:00 +0000 |
| Subject: | cvs: phpdoc-zh /reference/strings/functions bin2hex.xml chop.xml chr.xml chunk-split.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1860@lists.php.net to get a copy of this message | ||
nio Thu Apr 22 10:22:00 2004 EDT
Added files:
/phpdoc-zh/reference/strings/functions bin2hex.xml chop.xml chr.xml
chunk-split.xml
Log:
Add files.
http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/bin2hex.xml?r=1.1&p=1
Index: phpdoc-zh/reference/strings/functions/bin2hex.xml
+++ phpdoc-zh/reference/strings/functions/bin2hex.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.2 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.bin2hex">
<refnamediv>
<refname>bin2hex</refname>
<refpurpose>
½«¶þ½øÖÆÊý¾Ýת»»³ÉÊ®Áù½øÖƱíʾ
</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>string</type><methodname>bin2hex</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
</methodsynopsis>
<para>
·µ»Ø ASCII ×Ö·û´®£¬Îª²ÎÊý
<parameter>str</parameter>
µÄÊ®Áù½øÖƱíʾ¡£×ª»»Ê¹ÓÃ×Ö½Ú·½Ê½£¬¸ßËÄλ×Ö½ÚÓÅÏÈ¡£
</para>
<para>
²Î¼û <function>pack</function> ºÍ <function>unpack</function>¡£
</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
-->
http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/chop.xml?r=1.1&p=1
Index: phpdoc-zh/reference/strings/functions/chop.xml
+++ phpdoc-zh/reference/strings/functions/chop.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.2 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.chop">
<refnamediv>
<refname>chop</refname>
<refpurpose><function>rtrim</function> µÄ±ðÃûº¯Êý</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<para>
´Ëº¯ÊýÊÇ <function>rtrim</function> µÄ±ðÃûº¯Êý¡£
</para>
<note>
<para>
<function>chop</function> Óë Perl µÄ
<literal>chop()</literal>
º¯ÊýÓÐËù²»Í¬£¬Æäɾ³ý×Ö·û´®µÄ×îºóÒ»¸ö×Ö·û¡£
</para>
</note>
</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
-->
http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/chr.xml?r=1.1&p=1
Index: phpdoc-zh/reference/strings/functions/chr.xml
+++ phpdoc-zh/reference/strings/functions/chr.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.4 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.chr">
<refnamediv>
<refname>chr</refname>
<refpurpose>·µ»ØÖ¸¶¨µÄ×Ö·û</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>string</type><methodname>chr</methodname>
<methodparam><type>int</type><parameter>ascii</parameter></methodparam>
</methodsynopsis>
<para>
·µ»ØÏà¶ÔÓ¦ÓÚ <parameter>ascii</parameter>
ËùÖ¸¶¨µÄµ¥¸ö×Ö·û¡£
<example>
<title><function>chr</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
$str = "The string ends in escape: ";
$str .= chr(27); /* ÔÚ $str ºó±ßÔö¼Ó»»Âë·û */
/* ͨ³£ÕâÑù¸üÓÐÓà */
$str = sprintf("The string ends in escape: %c", 27);
?>
]]>
</programlisting>
</example>
</para>
<para>
Äã¿ÉÒÔÔÚ´Ë´¦ÕÒµ½ ASCII Âë±í£º<ulink
url="&url.asciitable;"
>&url.asciitable;</ulink>¡£
</para>
<para>
´Ëº¯ÊýÓë <function>ord</function> ÊÇ»¥²¹µÄ¡£²Î¼û
<function>sprintf</function> ÈçºÎʹÓøñʽ×Ö·û´®
<literal>%c</literal>¡£
</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
-->
http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/chunk-split.xml?r=1.1&p=1
Index: phpdoc-zh/reference/strings/functions/chunk-split.xml
+++ phpdoc-zh/reference/strings/functions/chunk-split.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.7 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.chunk-split">
<refnamediv>
<refname>chunk_split</refname>
<refpurpose>½«×Ö·û´®·Ö¸î³ÉС¿é</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>string</type><methodname>chunk_split</methodname>
<methodparam><type>string</type><parameter>body</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>end</parameter></methodparam>
</methodsynopsis>
<para>
ʹÓô˺¯Êý½«×Ö·û´®·Ö¸î³ÉС¿é·Ç³£ÓÐÓá£ÀýÈ罫
<link
linkend="function.base64-encode">base64_encode</link>
µÄÊä³öת»»³É·ûºÏ
RFC 2045 ÓïÒåµÄ×Ö·û´®¡£Ëü»áÔÚÿ
<parameter>chunklen</parameter>£¨Ä¬ÈÏΪ 76£©¸ö×Ö·ûºó±ß²åÈë
<parameter>end</parameter>£¨Ä¬ÈÏΪ¡°\r\n¡±£©¡£´Ëº¯Êý»á·µ»ØÐµÄ×Ö·û´®£¬¶ø²»»áÐÞ¸ÄÔÓÐ×Ö·û´®¡£
<example>
<title><function>chunk_split</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<?php
// ʹÓà RFC 2045 ÓïÒå¸ñʽ»¯ $data
$new_string = chunk_split(base64_encode($data));
?>
]]>
</programlisting>
</example>
</para>
<simpara>
²Î¼û
<function>str_split</function>¡¢<function>explode</function>¡¢<function>split</function>¡¢<function>wordwrap</function>
ºÍ <ulink url="&url.rfc;2045">RFC 2045</ulink>¡£
</simpara>
</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
-->