diff --git a/reference/pcre/functions/preg-replace-callback-array.xml b/reference/pcre/functions/preg-replace-callback-array.xml
index 9d287085bef3..b3f7651e1178 100644
--- a/reference/pcre/functions/preg-replace-callback-array.xml
+++ b/reference/pcre/functions/preg-replace-callback-array.xml
@@ -14,6 +14,7 @@
mixedsubjectintlimit-1intcount
+ intflags0
The behavior of this function is similar to
@@ -61,6 +62,20 @@
+
+ flags
+
+
+ flags can be a combination of the
+ PREG_OFFSET_CAPTURE and
+ PREG_UNMATCHED_AS_NULL flags, which influence the
+ format of the matches array.
+ See the description in
+ preg_match()
+ for more details.
+
+
+
@@ -78,6 +93,30 @@
+
+ &reftitle.changelog;
+
+
+
+
+
+ &Version;
+ &Description;
+
+
+
+
+ 7.4.0
+
+ The flags parameter was added.
+
+
+
+
+
+
+
+
&reftitle.examples;
diff --git a/reference/pcre/functions/preg-replace-callback.xml b/reference/pcre/functions/preg-replace-callback.xml
index 32c884f042d5..40d1fdf45b9c 100644
--- a/reference/pcre/functions/preg-replace-callback.xml
+++ b/reference/pcre/functions/preg-replace-callback.xml
@@ -15,6 +15,7 @@
mixedsubjectintlimit-1intcount
+ intflags0
The behavior of this function is almost identical to
@@ -64,7 +65,7 @@
- preg_replace_callback and
+ preg_replace_callback and
anonymous function
+
+ flags
+
+
+ flags can be a combination of the
+ PREG_OFFSET_CAPTURE and
+ PREG_UNMATCHED_AS_NULL flags, which influence the
+ format of the matches array.
+ See the description in
+ preg_match()
+ for more details.
+
+
+
@@ -131,7 +146,7 @@ fclose($fp);
If matches are found, the new subject will be returned, otherwise
- subject will be returned unchanged.
+ subject will be returned unchanged.
@@ -147,10 +162,16 @@ fclose($fp);
+
+ 7.4.0
+
+ The flags parameter was added.
+
+ 5.1.0
- The count parameter was added
+ The count parameter was added.