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