I have done a lot of looking around on the overflow, and on google, but none of the results works for my specific case.
I have a placeholder array called $holder, va
In php >= 5.5 you can use array_column:
array_unique(array_column($holder, 'pid'));