1--TEST--
2Test uksort(): basic functionality
3--FILE--
4<?php
5/*
6* proto bool uksort ( array &$array, callback $cmp_function )
7* Function is implemented in ext/standard/array.c
8*/
9function cmp($a, $b) {
10    if ($a == $b) {
11        return 0;
12    }
13    return ($a < $b) ? -1 : 1;
14}
15$a = array(3, 2, 5, 6, 1);
16uasort($a, "cmp");
17foreach($a as $key => $value) {
18    echo "$key: $value\n";
19}
20?>
21--EXPECT--
224: 1
231: 2
240: 3
252: 5
263: 6