php get unique values from 2d array code example
Example: get unique array from multidimentional array by value in php
$uniquePids = array_unique(array_map(function ($i) { return $i['pid']; }, $holder));
$uniquePids = array_unique(array_map(function ($i) { return $i['pid']; }, $holder));