1--TEST--
2Test natcasesort() function : usage variations - octal values
3--FILE--
4<?php
5/*
6 * Pass an array of octal values to test how natcasesort() re-orders it
7 */
8
9echo "*** Testing natcasesort() : usage variation ***\n";
10
11$unsorted_oct_array = array(01235, 0321, 0345, 066, 0772, 077, -066, -0345, 0);
12
13var_dump( natcasesort($unsorted_oct_array) );
14var_dump($unsorted_oct_array);
15
16echo "Done";
17?>
18--EXPECT--
19*** Testing natcasesort() : usage variation ***
20bool(true)
21array(9) {
22  [6]=>
23  int(-54)
24  [7]=>
25  int(-229)
26  [8]=>
27  int(0)
28  [3]=>
29  int(54)
30  [5]=>
31  int(63)
32  [1]=>
33  int(209)
34  [2]=>
35  int(229)
36  [4]=>
37  int(506)
38  [0]=>
39  int(669)
40}
41Done
42