|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-27 19:56 UTC] sterling@php.net
[2002-11-17 07:01 UTC] akorthaus at web dot de
[2002-11-17 11:09 UTC] michael dot mauch at gmx dot de
[2002-11-17 20:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
I tried the following script to sort an Array case-sensitive: <?php $test = array("B", "a", "b", "A", "BB", "AA"); usort($test, 'strcasecmp'); print_r($test); ?> What I expected to get was: Array ( [0] => A [1] => a [2] => AA [3] => B [4] => b [5] => BB ) What I got on Win2000/PHP 4.2.4-dev was: Array ( [0] => A [1] => a [2] => AA [3] => b [4] => B [5] => BB ) and using Linux with PHP 4.1.2 I got Array ( [0] => a [1] => A [2] => AA [3] => B [4] => b [5] => BB ) both is not correct. regards Andreas