Keep array rows where a column value is found in a second flat array
This whole task can be accomplished with just one slick, native function call — array_uintersect(). Because the two compared parameters in the custom callback may come either input array, try to access from the id column and if there isn’t one declared, then fallback to the parameter’s value. Under the hood, this function performs sorting … Read more