ID: 36958 Updated by: [EMAIL PROTECTED] Reported By: ac_sweeney at yahoo dot co dot uk -Status: Closed +Status: Open Bug Type: Documentation problem Operating System: windows PHP Version: Irrelevant New Comment:
Actually, the example was correct, because the output shows the values in descending order. Now, the output is incorrect and should be in ascending order: 3: three 4: four 10: ten 20: twenty Previous Comments: ------------------------------------------------------------------------ [2006-04-03 17:04:14] [EMAIL PROTECTED] This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. ------------------------------------------------------------------------ [2006-04-03 13:41:42] ac_sweeney at yahoo dot co dot uk Description: ------------ I have found a bug on page function.uksort.html [chm date: 2006-02-09]... Example 298. uksort() example is wrong the docs state that "The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second" in the example the "return ($a > $b) ? -1 : 1;" line is wrong as if $a > $b then the statement should be "return ($a > $b) ? 1 : -1;" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36958&edit=1