note 75555 deleted from function.array-unique by danbrown

From: Date: Thu, 06 Nov 2008 14:53:35 +0000
Subject: note 75555 deleted from function.array-unique by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146217@lists.php.net to get a copy of this message
Note Submitter: jmw at petriweb dot org ---- The intersection won't work, since: intersection (['a','a','b','c'] , UNIQUE(['a','a','b','c']) ) = intersection (['a','a','b','c'], ['a','b','c']) = ['a','a','b','c'] While you only want ['a'] or ['a','a'] to be the result. The only solution is to write your own function.

« previous php.notes (#146217) next »