array_filter [function]

array_filter( array[, callable] )

return an array with the items that convert to boolean 'true', optionally preprocessed by a callable

array_filter([ 0, 1, 2, 3 ]); // returns [1,2,3]