Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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

$filtered_results = array_combine(array_column($results, 'nid'), $results);
 
PREVIOUS NEXT
Tagged: #PHP #Elegant #removing #values #Associative #Arrays #based #key #duplication
ADD COMMENT
Topic
Name
7+9 =