note 39968 added to function.array-unique

From: Date: Tue, 17 Feb 2004 09:57:56 +0000
Subject: note 39968 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-65262@lists.php.net to get a copy of this message
Note that <?php array_unique($anyarray); ?> does not do anything, unlike other array functions such as <?php sort($anyarray); ?> You have to use something like: <?php $anyarray = array_unique($anyarray); ?> ---- Manual Page -- http://www.php.net/manual/en/function.array-unique.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39968 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39968&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39968&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65262) next »