Here is the description of array_unique() in PHP 7.2:
If sort_flags is SORT_STRING, formerly array has been copied and non-unique elements have been removed (without packing the array afterwards), but now a new array is built by adding the unique elements. This can result in different numeric indexes.
I have done many examples to see if there are any difference but can't. Could anyone please help show me the changes? Thank you.