|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jan 18 07:00:02 2026 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