cvs: phpdoc-it /reference/pcre/functions preg-split.xml
| From: | Andrioli Darvin | Date: | Fri, 11 Jul 2003 19:55:23 +0000 |
| Subject: | cvs: phpdoc-it /reference/pcre/functions preg-split.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-444@lists.php.net to get a copy of this message | ||
darvina Fri Jul 11 15:55:23 2003 EDT
Modified files:
/phpdoc-it/reference/pcre/functions preg-split.xml
Log:
Update to En 1.7
Index: phpdoc-it/reference/pcre/functions/preg-split.xml
diff -u phpdoc-it/reference/pcre/functions/preg-split.xml:1.4
phpdoc-it/reference/pcre/functions/preg-split.xml:1.5
--- phpdoc-it/reference/pcre/functions/preg-split.xml:1.4 Sat Mar 8 06:47:41 2003
+++ phpdoc-it/reference/pcre/functions/preg-split.xml Fri Jul 11 15:55:23 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/pcre.xml, last change in rev 1.1 -->
<!-- last change to 'preg-split' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.7 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.78/EN.1.2 -->
<refentry id="function.preg-split">
<refnamediv>
@@ -75,9 +75,11 @@
<title>Esempio di <function>preg_split</function>: Come ottenere le parti di
un testo.</title>
<programlisting role="php">
<![CDATA[
+<?php
// Suddivide la seguente frase in base alla presenza di virgole, spazi bianchi,
// e altri caratteri speciali quali \r, \t, \n ed \f
$keywords = preg_split ("/[\s,]+/", "hypertext language, programming");
+?>
]]>
</programlisting>
</example>
@@ -87,9 +89,11 @@
<title>Esempio di suddivisione di un testo in caratteri.</title>
<programlisting role="php">
<![CDATA[
+<?php
$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
+?>
]]>
</programlisting>
</example>
@@ -99,9 +103,11 @@
<title>Suddivisione di una stringa in testi riconosciuti con i relativi
offset.</title>
<programlisting role="php">
<![CDATA[
+<?php
$str = 'hypertext language programming';
$chars = preg_split('/ /', $str, -1, PREG_SPLIT_OFFSET_CAPTURE);
print_r($chars);
+?>
]]>
</programlisting>
<para>
@@ -148,7 +154,6 @@
<function>preg_match_all</function> e
<function>preg_replace</function>.
</para>
-
</refsect1>
</refentry>