PHP: array_unique without gap !
May 19th, 2008
No comments
If you use array_unique function for getting unique values in a simple array and if you need the index to be linear use this :
$unique = array_keys(array_flip($array));
This metod is about twice as fast or fast as array_unique !
Note that ...
Categories: Bookmarks, PhP, Tech, Web array linear, php array_flip, php array_keys, php array_unique, PHP Function








