Related Functions

array_filter

PHP 4.0.6+

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

Description

The array_filter() Filters elements of an array using a callback function, returning a new array containing only elements that pass the specified test condition.

Example