checking for duplicate values among five variables
| From: | Kenn Murrah | Date: | Sat, 07 Jul 2007 02:51:15 +0000 |
| Subject: | checking for duplicate values among five variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-258439@lists.php.net to get a copy of this message | ||
Can anyone help me with a way to determine of two or more variables have the same value? For instance,
$a1 = 1000
$a2 = 2000
$a3 = 2000
$a4 = 4000
$a5 = 5000
I want check these five variables and determine whether, as in this case, two or more of the variables have the same value.
Any suggestions how I can do this?
Thanks in advance.
kenn