dams Fri Feb 28 18:50:36 2003 EDT
Modified files:
/phpdoc/en/reference/pcre/functions preg-replace-callback.xml
preg-split.xml
Log:
detect constant plus see also
Index: phpdoc/en/reference/pcre/functions/preg-replace-callback.xml
diff -u phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.4
phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.5
--- phpdoc/en/reference/pcre/functions/preg-replace-callback.xml:1.4 Thu Feb 20
05:27:20 2003
+++ phpdoc/en/reference/pcre/functions/preg-replace-callback.xml Fri Feb 28
18:50:36 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.47 -->
<refentry id="function.preg-replace-callback">
<refnamediv>
@@ -24,7 +24,7 @@
replacement string.
</para>
<example>
- <title><function>preg_replace_callback</function></title>
+ <title><function>preg_replace_callback</function> example</title>
<programlisting role='php'>
<![CDATA[
<?php
Index: phpdoc/en/reference/pcre/functions/preg-split.xml
diff -u phpdoc/en/reference/pcre/functions/preg-split.xml:1.4
phpdoc/en/reference/pcre/functions/preg-split.xml:1.5
--- phpdoc/en/reference/pcre/functions/preg-split.xml:1.4 Thu Jun 13 03:55:02
2002
+++ phpdoc/en/reference/pcre/functions/preg-split.xml Fri Feb 28 18:50:36 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
<refentry id="function.preg-split">
<refnamediv>
@@ -16,12 +16,6 @@
<methodparam
choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>
- <note>
- <para>
- Parameter <parameter>flags</parameter> was added in PHP 4 Beta 3.
- </para>
- </note>
-
<para>
Returns an array containing substrings of
<parameter>subject</parameter> split along boundaries matched by
@@ -40,7 +34,7 @@
(combined with bitwise | operator):
<variablelist>
<varlistentry>
- <term>PREG_SPLIT_NO_EMPTY</term>
+ <term><constant>PREG_SPLIT_NO_EMPTY</constant></term>
<listitem>
<simpara>
If this flag is set, only non-empty pieces will be returned by
@@ -49,7 +43,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term>PREG_SPLIT_DELIM_CAPTURE</term>
+ <term><constant>PREG_SPLIT_DELIM_CAPTURE</constant></term>
<listitem>
<simpara>
If this flag is set, parenthesized expression in the delimiter pattern
@@ -58,7 +52,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term>PREG_SPLIT_OFFSET_CAPTURE</term>
+ <term><constant>PREG_SPLIT_OFFSET_CAPTURE</constant></term>
<listitem>
<para>
If this flag is set, for every occuring match the appendant string
@@ -66,7 +60,7 @@
value in an array where every element is an array consisting of the
matched string at offset <literal>0</literal> and it's string offset
into <parameter>subject</parameter> at offset <literal>1</literal>.
- This flag is available since <literal>PHP</literal> 4.3.0 .
+ This flag is available since PHP 4.3.0 .
</para>
</listitem>
</varlistentry>
@@ -74,7 +68,7 @@
</para>
<para>
<example>
- <title><function>preg_split</function> example : Get the parts of a search
string.</title>
+ <title><function>preg_split</function> example : Get the parts of a search
string</title>
<programlisting role="php">
<![CDATA[
// split the phrase by any number of commas or space characters,
@@ -86,7 +80,7 @@
</para>
<para>
<example>
- <title>Splitting a string into component characters.</title>
+ <title>Splitting a string into component characters</title>
<programlisting role="php">
<![CDATA[
$str = 'string';
@@ -98,7 +92,7 @@
</para>
<para>
<example>
- <title>Splitting a string into matches and their offsets.</title>
+ <title>Splitting a string into matches and their offsets</title>
<programlisting role="php">
<![CDATA[
$str = 'hypertext language programming';
@@ -136,6 +130,11 @@
</screen>
</example>
</para>
+ <note>
+ <para>
+ Parameter <parameter>flags</parameter> was added in PHP 4 Beta 3.
+ </para>
+ </note>
<para>
See also
<function>spliti</function>,
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php