If you want to check if two arrays contain the same values, regardless of order, you will have some issue using the operators == and ===.
With the equal operator == you are able to check for equality based on the type coerced values and keys (regardless of order).
With the identical operator === you are able to check for equality based on the type and exact ordering of the keys.
This is not always what you desire, treating the collection as a Set, you do not wish to validate the position of the element, only its’ presence.
However, this can be resolved by using the following functions.