note 91920 deleted from function.array-unique by danbrown

From: Date: Sun, 23 Jan 2011 17:20:17 +0000
Subject: note 91920 deleted from function.array-unique by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176185@lists.php.net to get a copy of this message
Note Submitter: Wolfgang "DarkoNeko" ten Weges ---- array_unique() is case-sensitive. If you need a case insensitive version, you better use something like this : $f = create_function('$a,$b', 'return (strtolower($a) > strtolower($b)?1:-1);'); usort( $your_array, $f );

« previous php.notes (#176185) next »