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

From: Date: Fri, 18 Apr 2025 23:59:19 +0000
Subject: [doc-en] master: Flip description of PREG_OFFSET_CAPTURE (fix #1097)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22624@lists.php.net to get a copy of this message
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>

« previous php.doc.cvs (#22624) next »