[doc-en] master: array_filter(): mode is ignored when callback is null (#5955)
| From: | qodelicious via GitHub | Date: | Sun, 18 Oct 2026 16:20:55 +0000 |
| Subject: | [doc-en] master: array_filter(): mode is ignored when callback is null (#5955) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23849@lists.php.net to get a copy of this message | ||
Author: qodelicious (qodelicious)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-10-18T18:20:52+02:00
Commit: https://github.com/php/doc-en/commit/00eb00696f9e9989ffa539be35571429b25333b8
Raw diff: https://github.com/php/doc-en/commit/00eb00696f9e9989ffa539be35571429b25333b8.diff
array_filter(): mode is ignored when callback is null (#5955)
* array_filter(): mode is ignored when callback is null
Fixes #2285
Changed paths:
M reference/array/functions/array-filter.xml
Diff:
diff --git a/reference/array/functions/array-filter.xml b/reference/array/functions/array-filter.xml
index fabe1b3e1ee3..3f50f6e84f3a 100644
--- a/reference/array/functions/array-filter.xml
+++ b/reference/array/functions/array-filter.xml
@@ -73,6 +73,10 @@
Default is <literal>0</literal> which will pass value as the only argument
to <parameter>callback</parameter> instead.
</para>
+ <simpara>
+ If <parameter>callback</parameter> is &null;,
<parameter>mode</parameter>
+ is ignored and only the values are checked.
+ </simpara>
</listitem>
</varlistentry>