Skip to content

array_unique

Hyomoto edited this page Jun 13, 2021 · 5 revisions
Jump To Go Back Arguments

array_unique( array )

Returns: array

Throws: InvalidArgumentType

Returns a new array that contains the unique elements of array. If an array is not provided, InvalidArgumentType will be thrown.

array_unique( [ 10, 10, 20, 20, 30 ] );
Output: [ 10,20,30 ]

Arguments

Name Type Purpose
array array No description
Clone this wiki locally