array_filter - chung-leong/qb GitHub Wiki

array_filter() - Filters elements of an array

array array_filter( array $array )

array_filter() filters out elements that are zero. The use of a callback function is not currently available.

Parameters:

array - The input array.

Return Value:

An array containing values in array that are not zero.

Version

1.4 and above.