summaryrefslogtreecommitdiffstats
path: root/inc/arrayutil.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/arrayutil.inc.php')
-rw-r--r--inc/arrayutil.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/arrayutil.inc.php b/inc/arrayutil.inc.php
index 3d93d7d5..ff44b914 100644
--- a/inc/arrayutil.inc.php
+++ b/inc/arrayutil.inc.php
@@ -8,6 +8,8 @@ class ArrayUtil
/**
* Take an array of arrays, take given key from each sub-array and return
* new array with just those corresponding values.
+ * If a key is missing from one of the sub-arrays, the entry will be skipped,
+ * and the resulting array will have fewer entries than the input array.
*/
public static function flattenByKey(array $list, string $key): array
{