Quantcast
Channel: puremango.co.uk » code
Viewing all articles
Browse latest Browse all 10

Fast PHP array_unique for removing duplicates

$
0
0
PHP’s native dedupe function, array_unique, can be slow for large amount of input. Here I’m going to talk about a simple function that performs the same task but which runs a lot faster. Often, people spout PHP optimisation advice that is incredibly misguided, so I want to make it clear up-front that you should be […]

Viewing all articles
Browse latest Browse all 10

Trending Articles