array_unique - chung-leong/qb GitHub Wiki

array_unique - Remove duplicate values from an array

array array_unique( array $array )

array_unqiue() takes an input array and returns a new array without duplicate values. It can handle multidimensional arrays.

Parameters:

array - The input array.

Return Value:

An array without duplicate values.

Version

1.0 and above.