I have a php array
How can I compare all values of this array and filter out values based on custom logic (callback function maybe).
Essentially, I want to compare each array value with every other value within the array and based on some custom logic, either keep the value or remove it from the array
Thanks
Probably you have to do it manually:
This example will filter unique values of array for example; change your_callback definition to implement other logic.