jeroen Wed Aug 29 14:05:20 2001 EDT
Modified files:
/phpdoc/en/functions regex.xml
Log:
Added note to split (TODO: add to spliti and other split/explode like
functions)
Index: phpdoc/en/functions/regex.xml
diff -u phpdoc/en/functions/regex.xml:1.25 phpdoc/en/functions/regex.xml:1.26
--- phpdoc/en/functions/regex.xml:1.25 Sun Aug 19 07:47:43 2001
+++ phpdoc/en/functions/regex.xml Wed Aug 29 14:05:20 2001
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.25 $ -->
+<!-- $Revision: 1.26 $ -->
<reference id="ref.regex">
<title>Regular Expression Functions (POSIX Extended)</title>
<titleabbrev>Regexps</titleabbrev>
@@ -325,6 +325,16 @@
</programlisting>
</example>
</para>
+ <tip>
+ <simpara>
+ If there are <replaceable>n</replaceable> occurences of
+ <parameter>pattern</parameter>, the returned array will contain
+ <literal><replaceable>n</replaceable>+1</literal> items. For example, if
+ there is no occurence of <parameter>pattern</parameter>, an array with
+ only one element will be returned. Of course, this is also true if
+ <parameter>string</parameter> is emply.
+ </simpara>
+ </tip>
<para>
To parse a date which may be delimited with slashes, dots, or
hyphens:
@@ -467,4 +477,5 @@
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
+vi: et:ts=1:sw=1:textwidth=78:syntax=sgml
-->