From e9101363ed268dfcdcf08568ec3f5df241b9abfd Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Fri, 2 Feb 2007 02:44:17 +0000 Subject: [PATCH] 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 --- reference/pcre/functions/preg-match-all.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/reference/pcre/functions/preg-match-all.xml b/reference/pcre/functions/preg-match-all.xml index c5c902a71a..c1ce9cd446 100644 --- a/reference/pcre/functions/preg-match-all.xml +++ b/reference/pcre/functions/preg-match-all.xml @@ -1,5 +1,5 @@ - + @@ -113,10 +113,11 @@ echo $out[1][0] . ", " . $out[1][1] . "\n"; 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 0 and its string offset - into subject at offset 1. + offset will also be returned. Note that this changes the value of + matches in an array where every element is an + array consisting of the matched string at offset 0 + and its string offset into subject at offset + 1. This flag is available since PHP 4.3.0 .