array_filter

Filters elements of an array using a callback function, returning only elements that pass the test.

Parameters

main.php
PHP 8.4 | UTF-8
Ready
Line: 1, Column: 1

Return Values

Notes

Changelog

Related Functions

Pushes one or more elements onto the end of an array and returns the new number of elements.

arrayaddqueue

Applies a callback function to the elements of one or more arrays and returns a new array with the results.

transformcallbackmap

Removes duplicate values from an array and returns the array with unique values only.

uniquededuplicatefilter

Compares two or more arrays and returns the values from the first array that are not present in any of the other arrays.

comparedifferencefilter