note 27642 added to function.array-diff

From: Date: Fri, 13 Dec 2002 21:34:55 +0000
Subject: note 27642 added to function.array-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-40882@lists.php.net to get a copy of this message
Order appears to matter with array_diff... $dif = array_diff ($HTTP_POST_VARS[user], $my_list); // Gave expected results $dif = array_diff ($my_list, $HTTP_POST_VARS[user]); // No Results -- http://www.php.net/manual/en/function.array-diff.php http://master.php.net/manage/user-notes.php?action=edit+27642 http://master.php.net/manage/user-notes.php?action=delete+27642 http://master.php.net/manage/user-notes.php?action=reject+27642

« previous php.notes (#40882) next »