In this tutorial, You can use array_\diff() function to compare an array to one or more other arrays.