svn: /phpdoc/ru/trunk/reference/strings/functions/ nl2br.xml
| From: | Shein Alexey | Date: | Tue, 03 May 2011 08:23:37 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/strings/functions/ nl2br.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-1767@lists.php.net to get a copy of this message | ||
shein Tue, 03 May 2011 08:23:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310729
Log:
Updated translation.
Changed paths:
U phpdoc/ru/trunk/reference/strings/functions/nl2br.xml
Modified: phpdoc/ru/trunk/reference/strings/functions/nl2br.xml
===================================================================
--- phpdoc/ru/trunk/reference/strings/functions/nl2br.xml 2011-05-03 08:14:41 UTC (rev 310728)
+++ phpdoc/ru/trunk/reference/strings/functions/nl2br.xml 2011-05-03 08:23:37 UTC (rev 310729)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 310545 Maintainer: shein Status: ready -->
<!-- Reviewed: no -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.nl2br">
@@ -17,7 +17,9 @@
</methodsynopsis>
<para>
Возвращает строку <parameter>string</parameter>, в которой
перед каждым
- переводом строки вставлен '<br />' или
'<br>'.
+ переводом строки (<literal>\r\n</literal>,
+ <literal>\n\r</literal>, <literal>\n</literal> и
+ <literal>\r</literal>) вставлен '<br />' или
'<br>'.
</para>
</refsect1>
@@ -89,6 +91,26 @@
]]>
</screen>
</example>
+ <example>
+ <title>Различные разделители строк</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$string = "This\r\nis\n\ra\nstring\r";
+echo nl2br($string);
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+This<br />
+is<br />
+a<br />
+string<br />
+]]>
+ </screen>
+ </example>
</para>
</refsect1>