Typos and wrong nesting of elements.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@39997 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2001-01-22 22:51:51 +00:00
parent d9990a9d99
commit 6154b2afef
2 changed files with 13 additions and 14 deletions

View file

@ -1680,8 +1680,6 @@ while (list ($key, $val) = each ($HTTP_POST_VARS)) {
</simpara>
</listitem>
</varlistentry>
</variablelist>
<variablelist>
<varlistentry>
<term>EXTR_PREFIX_INVALID</term>
<listitem>

View file

@ -88,11 +88,11 @@
<para>
Returns true if a match for <parameter>pattern</parameter> was
found in the subject string, or false if not match was found
or an error occurred.</para>
or an error occurred.
</para>
<para>
<example>
<title>find the string of text "php"</title>
<title>Find the string of text "php"</title>
<programlisting role="php">
// the "i" after the pattern delimiter indicates a case-insensitive search
if (preg_match ("/php/i", "PHP is the web scripting language of choice.")) {
@ -365,7 +365,7 @@ part 3: &lt;/a&gt;
the line containing <function>preg_replace</function>.
</para>
<para>
</literal>/F</literal> modifier means that the
<literal>/F</literal> modifier means that the
<parameter>replacement</parameter> is taken to be a function name. This
function will be called and passed an array of matched elements in the
subject string. The function should return the replacement string. This
@ -703,8 +703,8 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array);
If this modifier is set, <function>preg_replace</function>
does normal substitution of backreferences in the
replacement string, evaluates it as PHP code, and uses the
result for replacing the search string. This modifier cannot be used along
with <literal>/F modifier</literal>.
result for replacing the search string. This modifier cannot
be used along with <literal>/F modifier</literal>.
</simpara>
<simpara>
Only <function>preg_replace</function> uses this modifier;
@ -717,15 +717,16 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array);
<listitem>
<simpara>
If this modifier is set, <function>preg_replace</function>
treats the replacement parameter as a function name that should be called
to provide the replacement string. The function is passed an array of
matched elements in the subject string. This modifier cannot be used along
with <literal>/e modifier</literal>.
treats the replacement parameter as a function name that
should be called to provide the replacement string. The
function is passed an array of matched elements in the
subject string. This modifier cannot be used along with
<literal>/e modifier</literal>.
</simpara>
<simpara>
Only <function>preg_replace</function> uses this modifier;
it is ignored by other PCRE functions. This modifier was added in PHP
4.0.4.
it is ignored by other PCRE functions. This modifier was
added in PHP 4.0.4.
</simpara>
</listitem>
</varlistentry>