note 78608 deleted from function.array-unique by felipe
| From: | felipe@php.net | Date: | Sun, 16 Dec 2007 12:10:34 +0000 |
| Subject: | note 78608 deleted from function.array-unique by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133682@lists.php.net to get a copy of this message | ||
Note Submitter: cz12
Reason: 1
----
Check for duplicates in an array (as opposed to removing them):
<?php
if (array_unique($array) != $array)
{
echo "Duplicate located in array.";
}
?>