#23189 [Opn]: ksort() doesn't work on numeric arrays

From: Date: Sun, 13 Apr 2003 23:04:16 +0000
Subject: #23189 [Opn]: ksort() doesn't work on numeric arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37619@lists.php.net to get a copy of this message
ID: 23189 User updated by: wom dot bat at gmx dot net Reported By: wom dot bat at gmx dot net Status: Open Bug Type: Arrays related Operating System: Windows XP PHP Version: 4.3.1 New Comment: arrgh... I guess I'm a little exhausted. close this one, please Previous Comments: ------------------------------------------------------------------------ [2003-04-13 18:00:52] wom dot bat at gmx dot net If I try to sort a numeric array using ksort(), nothing happens, the array doesn't get sorted at all. sort() works perfect, though - the array gets sorted, but the index associations aren't kept, of course. As the documentation doesn't say that ksort() only works with associative arrays, I guess this is likely to be a bug... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23189&edit=1

« previous php.bugs (#37619) next »