← All docs

array_unique()

Removes duplicate values from an array.

array_unique()

function array_unique(array $array): array

Removes duplicate values from an array.

Parameters:

  • $array (array)

Returns: array

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_unique is implemented in the compiler, see the internals page.