[DOC-CVS] [doc-en] master: Flip description of PREG_OFFSET_CAPTURE (fix #1097)

[email protected] (Jakub Vrana)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Jakub Vrana (vrana)
Date: 2025-04-19T01:49:00+02:00

Commit: https://github.com/php/doc-en/commit/ac164c90531649b64e4dd70e0a01e72dbc377dad
Raw diff: https://github.com/php/doc-en/commit/ac164c90531649b64e4dd70e0a01e72dbc377dad.diff

Flip description of PREG_OFFSET_CAPTURE (fix #1097)

Changed paths:
  M  reference/pcre/constants.xml


Diff:

diff --git a/reference/pcre/constants.xml b/reference/pcre/constants.xml
index fa1adf6cbb81..baf5b59a9030 100644
--- a/reference/pcre/constants.xml
+++ b/reference/pcre/constants.xml
@@ -45,8 +45,11 @@
       (<type>int</type>)
      </entry>
      <entry>
-      See the description of
-      <constant>PREG_SPLIT_OFFSET_CAPTURE</constant>.
+      If this flag is set, for every occurring match the appendant string
+      offset will also be returned. Note that this changes the return
+      values in an array where every element is an array consisting of the
+      matched string at offset 0 and its string offset within subject at
+      offset 1.
      </entry>
      <entry/>
     </row>
@@ -78,11 +81,8 @@
       (<type>int</type>)
      </entry>
      <entry>
-      If this flag is set, for every occurring match the appendant string
-      offset will also be returned. Note that this changes the return
-      values in an array where every element is an array consisting of the
-      matched string at offset 0 and its string offset within subject at
-      offset 1. This flag is only used for <function>preg_split</function>.
+      See the description of <constant>PREG_OFFSET_CAPTURE</constant>.
+      This flag is only used for <function>preg_split</function>.
      </entry>
      <entry/>
     </row>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.