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
Just iterate over it and apply an array_unique on the result:
array_unique
foreach($holder as $yourValues){ $pids[] = $yourValues['pid']; } $yourUniquePids = array_unique($pids);
In php >= 5.5 you can use array_column:
array_unique(array_column($holder, 'pid'));