note 51607 modified in function.array-unique by danbrown

From: Date: Thu, 06 Nov 2008 15:08:20 +0000
Subject: note 51607 modified in function.array-unique by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146231@lists.php.net to get a copy of this message
A very simple way of getting rid of duplicate entries and re-indexing with key starting at 0: <?php $temp=array_unique($main); $main=array_values($temp); ?> --was-- A very simple way of getting rid of duplicate entries and re-indexing with key starting at 0: $temp=array_unique($main); $main=array_values($temp); http://php.net/manual/en/function.array-unique.php

« previous php.notes (#146231) next »