array_​diff() is an another PHP Pre built / default array function, This function is basically allows user to compare the values of two arrays, and return the differences. array_​diff function compares the values of two (or more) arrays, and return an array that contains the entries from first array that