From: [EMAIL PROTECTED] Operating system: Unix PHP version: 4.1.2 PHP Bug Type: Unknown/Other Function Bug description: uasort does not seem to work
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 bug report at http://bugs.php.net/?id=16215&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16215&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16215&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16215&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16215&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16215&r=support Expected behavior: http://bugs.php.net/fix.php?id=16215&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16215&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16215&r=submittedtwice