note 78608 modified in function.array-unique by james

From: Date: Thu, 18 Oct 2007 21:45:57 +0000
Subject: note 78608 modified in function.array-unique by james
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131520@lists.php.net to get a copy of this message
Check for duplicates in an array (as opposed to removing them): <?php if (array_unique($array) != $array) { echo "Duplicate located in array."; } ?> --was-- Check for duplicates in an array (as opposed to removing them): if (array_unique($array) != $array) { echo "Duplicate located in array."; } http://php.net/manual/en/function.array-unique.php

« previous php.notes (#131520) next »