Archive

Posts Tagged ‘array linear’

PHP: array_unique without gap !

May 19th, 2008 No comments
PHP: array_unique without gap ! 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 ...
GoCache - ByREV-Cache v1.0 - live served in : 0.340585 sec (gzip)