cvs: phpdoc-ru /reference/strings/functions chunk-split.xml trim.xml

From: Date: Thu, 29 Apr 2004 15:39:09 +0000
Subject: cvs: phpdoc-ru /reference/strings/functions chunk-split.xml trim.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-323@lists.php.net to get a copy of this message
tony2001 Thu Apr 29 11:39:09 2004 EDT Modified files: /phpdoc-ru/reference/strings/functions chunk-split.xml trim.xml Log: sync with EN (blindman) http://cvs.php.net/diff.php/phpdoc-ru/reference/strings/functions/chunk-split.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-ru/reference/strings/functions/chunk-split.xml diff -u phpdoc-ru/reference/strings/functions/chunk-split.xml:1.1 phpdoc-ru/reference/strings/functions/chunk-split.xml:1.2 --- phpdoc-ru/reference/strings/functions/chunk-split.xml:1.1 Mon Apr 12 04:41:56 2004 +++ phpdoc-ru/reference/strings/functions/chunk-split.xml Thu Apr 29 11:39:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="windows-1251"?> -<!-- EN-Revision: 1.7 Maintainer: blindman Status: ready --> -<!-- $Revision: 1.1 $ --> +<!-- EN-Revision: 1.8 Maintainer: blindman Status: ready --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.chunk-split"> <refnamediv> @@ -17,7 +17,7 @@ </methodsynopsis> <para> Ôóíêöèÿ èñïîëüçóåòñÿ äëÿ ðàçáèåíèÿ ñòðîêè íà ôðàãìåíòû, íàïðèìåð, äëÿ - ïðèâåäåíèÿ ðåçóëüòàòà ôóíêöèè <link linkend="function.base64-encode">base64_encode</link> + ïðèâåäåíèÿ ðåçóëüòàòà ôóíêöèè <function>base64_encode</function> â ñîîòâåòñòâèå ñ òðåáîâàíèÿìè <ulink url="&url.rfc;2045">RFC 2045</ulink>. Îíà âñòàâëÿåò ñòðîêó <parameter>end</parameter> (ïî óìîë÷àíèþ "\r\n") ïîñëå êàæäûõ <parameter>chunklen</parameter> http://cvs.php.net/diff.php/phpdoc-ru/reference/strings/functions/trim.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-ru/reference/strings/functions/trim.xml diff -u phpdoc-ru/reference/strings/functions/trim.xml:1.1 phpdoc-ru/reference/strings/functions/trim.xml:1.2 --- phpdoc-ru/reference/strings/functions/trim.xml:1.1 Mon Apr 12 04:41:56 2004 +++ phpdoc-ru/reference/strings/functions/trim.xml Thu Apr 29 11:39:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="windows-1251"?> -<!-- EN-Revision: 1.4 Maintainer: blindman Status: ready --> -<!-- $Revision: 1.1 $ --> +<!-- EN-Revision: 1.6 Maintainer: blindman Status: ready --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.trim"> <refnamediv> @@ -16,12 +16,6 @@ <methodparam><type>string</type><parameter>str</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>charlist</parameter></methodparam> </methodsynopsis> - <note> - <simpara> - Íåîáÿçàòåëüíûé àðãóìåíò <parameter>charlist</parameter> áûë äîáàâëåí - â âåðñèè 4.1.0 - </simpara> - </note> <para> Ýòà ôóíêöèÿ âîçâðàùàåò ñòðîêó <parameter>str</parameter> ñ óäàëåííûìè èç íà÷àëà è êîíöà ñòðîêè ïðîáåëàìè. @@ -80,19 +74,25 @@ <?php $text = "\t\tËèøü íåñêîëüêî ñëîâ :) ... "; -$trimmed = trim($text); -// $trimmed = "Ëèøü íåñêîëüêî ñëîâ :) ..." -$trimmed = trim($text, " \t."); -// $trimmed = "Ëèøü íåñêîëüêî ñëîâ :)" -$clean = trim($binary, "\x00..\x1F"); + +echo trim($text); // "Ëèøü íåñêîëüêî ñëîâ :) ..." +echo trim($text, " \t."); // "Ëèøü íåñêîëüêî ñëîâ :)" + // óäàëèòü óïðàâëÿþùèå ñèìâîëû ASCII èç íà÷àëà è êîíöà // ñòðîêè $binary (îò 0 äî 31 âêëþ÷èòåëüíî) +$clean = trim($binary, "\x00..\x1F"); ?> ]]> </programlisting> </para> </example> + <note> + <simpara> + Íåîáÿçàòåëüíûé àðãóìåíò <parameter>charlist</parameter> áûë äîáàâëåí + â âåðñèè 4.1.0 + </simpara> + </note> <para> Ñì. òàêæå îïèñàíèå ôóíêöèé <function>ltrim</function> è <function>rtrim</function>.

« previous php.doc.ru (#323) next »