unique

Removes duplicate entries from the array. The order of the elements is retained.

Syntax

unique ( array_expression )

Example

# csv ( unique ( array ( 's3', 'a', 's3', 'x' ) ) ) #

Result

's3', 'a', 'x'