How do I find double values in an associative array

From: Date: Tue, 05 Feb 2002 13:50:49 +0000
Subject: How do I find double values in an associative array
Groups: php.general 
Request: Send a blank email to php-general+get-83586@lists.php.net to get a copy of this message
Hello group, Can anybody tell me how I easily compare values in an associative array? I would like to find double values.... I have for instance an array like: $foo['key1'] = 'abc'; $foo['key2'] = 'def'; $foo['key3'] = 'abc'; $foo['key4'] = 'ghi'; and I want to get the value 'abc' ... Please send me an email (rainer.schreiber@chello.nl) because my newsgroups doesn't always work properly! Thanx, Rainer.

« previous php.general (#83586) next »