diff --git a/reference/array/functions/array-filter.xml b/reference/array/functions/array-filter.xml index 00907f1818..a34af7749a 100644 --- a/reference/array/functions/array-filter.xml +++ b/reference/array/functions/array-filter.xml @@ -19,7 +19,11 @@ passing them to the callback function. If the callback function returns &true;, the current value from array is returned into - the result &array;. Array keys are preserved. + the result &array;. + + + Array keys are preserved, and may result in gaps if the array was indexed. + The result &array; can be reindexed using the array_values function. @@ -44,10 +48,9 @@ The callback function to use - If no callback is supplied, all entries of - array equal to &false; (see - converting to - boolean) will be removed. + If no callback is supplied, all empty entries of + array will be removed. See empty + for how PHP defines empty in this case.