|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-02-25 18:23 UTC] zeev
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
When you incorrectly use the sort() function, PHP barfs and dumps core. <? function a($array) { return($array); } $testarray = array("this", "is", "a", "test"); $newarray = sort(a($testarray)); echo count($newarray)."\n"; ?> Should handle the error situation better or permit sort() to be used in this way. :) $x = a(b(c(sort($d))));