The built-in function array_diff() finds the difference between two or more arrays. It can be used to delete multiple values from an array without effecting their indexes. The correct syntax to use this function is as follows