|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-19 17:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 13:00:01 2025 UTC |
Description: ------------ The string sorting output for the next program is wrong (just for 0 case, for any other number rather than 0, it works). Reproduce code: --------------- <?php $arr_test = array(); array_push($arr_test, '0'); array_push($arr_test, '0.0'); sort($arr_test); foreach($arr_test as $test){ print $test . "|"; } ?> Expected result: ---------------- 0|0.0 Actual result: -------------- 0.0|0