Skip to content
Chung Leong edited this page Jan 10, 2022 · 3 revisions

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.

Clone this wiki locally