array_filter

 array array_filter ( array $input [, callback $callback ] ) 

説明

Iterates over each value in the input array passing them to the callback function. If the callback function returns true, the current value from input is returned into the result array. Array keys are preserved.

戻り値

Returns the filtered array.