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