Bug #16215 Updated: uasort does not seem to work

From: Date: Fri, 22 Mar 2002 08:58:52 +0000
Subject: Bug #16215 Updated: uasort does not seem to work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3126@lists.php.net to get a copy of this message
ID: 16215 Updated by: mfischer@php.net Reported By: eved_hashem@lycos.com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Unix PHP Version: 4.1.2 New Comment: Please provide a full copy&paste example Previous Comments: ------------------------------------------------------------------------ [2002-03-21 21:18:34] eved_hashem@lycos.com I just want to report that the example code for the uasort function in the PHP manual does not work and nothing gets sorted.. I've tried for hours and using multiple books to get uasort to work with multidimensional associative arrays and I have had no success... Am I possibly printing out the arrays incorrectly?? This is what i Used to display the sorted array in the example in the PHP manual: for ( $row = 0; $row < 3; $row++ ) { while (list($key, value) = each ($array[ $row] ) ) { echo "|$value"; } echo "|<BR>"; } this can be the only possible thing I find that could be wrong.. if my code is not incorrect than this is a bug in the program.. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16215&edit=1

« previous php.bugs (#3126) next »