DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit