|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-14 19:40 UTC] jeroen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 00:00:02 2025 UTC |
in linux, the following array would be UNCHANGED after being put through array_unique. But, in windows you'll see below, the it doesn't seem to go deeper into the value of each array element to check if they are the same or different. the following are the results from using array_unique on wnidows 2000 BEFORE Array ( [0] => Array ( [0] => 4003 [1] => 50140 [2] => 1 ) [1] => Array ( [0] => 4001 [1] => 50140 [2] => 1 ) [2] => Array ( [0] => 2051 [1] => 50200 [2] => 1 ) [3] => Array ( [0] => 998 [1] => 50190 [2] => 1 ) ) AFTER ARRAY_UNIQUE Array ( [1] => Array ( [0] => 4001 [1] => 50140 [2] => 1 ) )