Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP - Elegant way of removing values from Associative Arrays based on a key value duplication

return array_intersect_key($results, array_unique(array_column($results, 'nid')));
 
PREVIOUS NEXT
Tagged: #PHP #Elegant #removing #values #Associative #Arrays #based #key #duplication
ADD COMMENT
Topic
Name
8+6 =