Quantcast
Channel: wimg – Wim Godden professional blog
Viewing all articles
Browse latest Browse all 23

Getting uniques from an array (with speed in mind)

$
0
0
Important : the following technique doesn’t work for any arrays where the values are : boolean (true/false) null objects resources Suppose you get data from some source (an XML file, a CSV file, …) and you put it into an array. Now suppose this data is full of duplicates. For example, you have : array( […]

Viewing all articles
Browse latest Browse all 23

Trending Articles