note 78607 deleted from function.array-unique by james

From: Date: Thu, 18 Oct 2007 21:49:27 +0000
Subject: note 78607 deleted from function.array-unique by james
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131521@lists.php.net to get a copy of this message
Note Submitter: cz12 ---- A simple way of checking for duplicates in an array (as opposed to removing them outright): if (array_unique($array) != $array) { echo "Duplicate found in array."; }

« previous php.notes (#131521) next »