[PHPDOC] cvs: phpdoc /de/functions/ regex.xml strings.xml /en/functions/ regex.xml strings.xml From: Hartmut Holzgraefe (hholzgra <email protected>)
Date: 05/19/00

hholzgra Sat May 20 00:01:34 2000 EDT

  Modified files:
    /phpdoc/en/functions regex.xml strings.xml
    /phpdoc/de/functions regex.xml strings.xml
  Log:
  added/updated documentation for optional 3rd parameter
  in explode() and split()
  
  
Index: phpdoc/en/functions/regex.xml
diff -u phpdoc/en/functions/regex.xml:1.3 phpdoc/en/functions/regex.xml:1.4
--- phpdoc/en/functions/regex.xml:1.3 Fri Dec 10 22:49:24 1999
+++ phpdoc/en/functions/regex.xml Sat May 20 00:01:34 2000
@@ -248,10 +248,13 @@
     </funcsynopsis>
     <para>
      Returns an array of strings, each of which is a substring of
- string formed by splitting it on boundaries formed by the regular
- expression <parameter>pattern</parameter>. If an error occurs,
- returns false.
- </para>
+ <parameter>string</parameter> formed by splitting it on boundaries formed
+ by the regular expression <parameter>pattern</parameter>.
+ If <parameter>limit</parameter> is set, the returned array will contaion a
+ maximum of <parameter>limit</parameter> elements with the last element
+ containing the whole rest of <parameter>string</parameter>.
+ If an error occurs, <function>split</function> returns false.
+ </para>
 
     <para>
      To get the first five fields from a line from
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.9 phpdoc/en/functions/strings.xml:1.10
--- phpdoc/en/functions/strings.xml:1.9 Sun Feb 20 00:29:47 2000
+++ phpdoc/en/functions/strings.xml Sat May 20 00:01:34 2000
@@ -460,10 +460,15 @@
      <funcdef>array <function>explode</function></funcdef>
      <paramdef>string <parameter>separator</parameter></paramdef>
      <paramdef>string <parameter>string</parameter></paramdef>
+ <paramdef>int <parameter><optional>limit</optional></parameter></paramdef>
     </funcsynopsis>
     <para>
- Returns an array of strings containing the elements separated by
- <replaceable>separator</replaceable>.
+ Returns an array of strings, each of which is a substring of
+ <parameter>string</parameter> formed by splitting it on boundaries formed
+ by the string <parameter>delim</parameter>.
+ If <parameter>limit</parameter> is set, the returned array will contaion a
+ maximum of <parameter>limit</parameter> elements with the last element
+ containing the whole rest of <parameter>string</parameter>.
      <example>
       <title><function>Explode</function> example</title>
       <programlisting role="php">
Index: phpdoc/de/functions/regex.xml
diff -u phpdoc/de/functions/regex.xml:1.2 phpdoc/de/functions/regex.xml:1.3
--- phpdoc/de/functions/regex.xml:1.2 Fri Dec 10 01:34:31 1999
+++ phpdoc/de/functions/regex.xml Sat May 20 00:01:34 2000
@@ -247,12 +247,14 @@
      <paramdef>int <parameter><optional>limit</optional></parameter></paramdef>
     </funcsynopsis>
     <para>
+ </para>
      Returns an array of strings, each of which is a substring of
- string formed by splitting it on boundaries formed by the regular
- expression <parameter>pattern</parameter>. If an error occurs,
- returns false.
- </para>
-
+ <parameter>string</parameter> formed by splitting it on boundaries formed
+ by the regular expression <parameter>pattern</parameter>.
+ If <parameter>limit</parameter> is set, the returned array will contaion a
+ maximum of <parameter>limit</parameter> elements with the last element
+ containing the whole rest of <parameter>string</parameter>.
+ If an error occurs, <function>split</function> returns false.
     <para>
      To get the first five fields from a line from
      <filename>/etc/passwd</filename>:
Index: phpdoc/de/functions/strings.xml
diff -u phpdoc/de/functions/strings.xml:1.5 phpdoc/de/functions/strings.xml:1.6
--- phpdoc/de/functions/strings.xml:1.5 Sat Feb 19 15:53:21 2000
+++ phpdoc/de/functions/strings.xml Sat May 20 00:01:34 2000
@@ -460,10 +460,15 @@
      <funcdef>array <function>explode</function></funcdef>
      <paramdef>string <parameter>separator</parameter></paramdef>
      <paramdef>string <parameter>string</parameter></paramdef>
+ <paramdef>int <parameter><optional>limit</optional></parameter></paramdef>
     </funcsynopsis>
     <para>
- Returns an array of strings containing the elements separated by
- <replaceable>separator</replaceable>.
+ Returns an array of strings, each of which is a substring of
+ <parameter>string</parameter> formed by splitting it on boundaries formed
+ by the string <parameter>delim</parameter>.
+ If <parameter>limit</parameter> is set, the returned array will contaion a
+ maximum of <parameter>limit</parameter> elements with the last element
+ containing the whole rest of <parameter>string</parameter>.
      <example>
       <title><function>Explode</function> example</title>
       <programlisting role="php">