array_diff

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

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

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

uniquededuplicatefilter

usort

Array

Sorts an array by values using a user-defined comparison function, losing original keys.

sortcustomcompare

max

Math

Returns the highest value among the given values, or the highest value in an array.

maximumcomparehighest

min

Math

Returns the lowest value among the given values, or the lowest value in an array.

minimumcomparelowest