array_unique

Removes duplicate values from an array and returns the array with unique values only.

Parameters

main.php
PHP 8.4 | UTF-8
Ready
Line: 1, Column: 1

Return Values

Notes

Changelog

Related Functions

Filters elements of an array using a callback function, returning only elements that pass the test.

filtercallbackarray

uniqid

Misc

Generates a unique identifier based on the current time in microseconds.

uniqueidentifiersession

Compares two or more arrays and returns the values from the first array that are not present in any of the other arrays.

comparedifferencefilter