1--TEST--
2Test natcasesort() function : usage variations - different hex values
3--FILE--
4<?php
5/*
6 * Pass an array of different hex values to test how natcasesort() re-orders it
7 */
8
9echo "*** Testing natcasesort() : usage variation ***\n";
10
11$unsorted_hex_array = array(0x1AB, 0xFFF, 0xF, 0xFF, 0x2AA, 0xBB, 0x1ab, 0xff, -0xFF, 0, -0x2aa);
12var_dump( natcasesort($unsorted_hex_array) );
13var_dump($unsorted_hex_array);
14
15echo "Done";
16?>
17--EXPECT--
18*** Testing natcasesort() : usage variation ***
19bool(true)
20array(11) {
21  [8]=>
22  int(-255)
23  [10]=>
24  int(-682)
25  [9]=>
26  int(0)
27  [2]=>
28  int(15)
29  [5]=>
30  int(187)
31  [3]=>
32  int(255)
33  [7]=>
34  int(255)
35  [0]=>
36  int(427)
37  [6]=>
38  int(427)
39  [4]=>
40  int(682)
41  [1]=>
42  int(4095)
43}
44Done
45