Fix #40272: affects the matches parameter, not the returned value

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228719 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2007-02-02 02:44:17 +00:00
parent cb69c49e00
commit e9101363ed

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.19 $ -->
<!-- $Revision: 1.20 $ -->
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
<refentry id="function.preg-match-all">
<refnamediv>
@ -113,10 +113,11 @@ echo $out[1][0] . ", " . $out[1][1] . "\n";
<listitem>
<para>
If this flag is passed, for every occurring match the appendant string
offset will also be returned. Note that this changes the return
value in an array where every element is an array consisting of the
matched string at offset <literal>0</literal> and its string offset
into <parameter>subject</parameter> at offset <literal>1</literal>.
offset will also be returned. Note that this changes the value of
<parameter>matches</parameter> in an array where every element is an
array consisting of the matched string at offset <literal>0</literal>
and its string offset into <parameter>subject</parameter> at offset
<literal>1</literal>.
This flag is available since PHP 4.3.0 .
</para>
</listitem>