|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-03 07:21 UTC] waldschrott@php.net
[2000-09-03 08:26 UTC] jmoore@php.net
[2000-09-03 08:31 UTC] waldschrott@php.net
[2000-09-03 08:35 UTC] jmoore@php.net
[2010-08-07 01:43 UTC] johannes@php.net
-Status: Analyzed
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-08-07 01:43 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
When using sort, it sorts by ASCII code and not alphabetically, this might be what was intended but the function does not behave as might be expected, take the following example: <?php $test = array("AA","AC","AR","AJ","Ab"); asort($test); var_dump($test); ?> Does not ourput AA,Ab,AC,AJ,AR But infact AA,AC,AJ,AR,Ab Now this is due to Ascii Char codes. Perhaps a warning should be added to the manual if this behaviour stays the same. James