1--TEST--
2Test natcasesort() function : basic functionality
3--FILE--
4<?php
5/*
6 * Test basic functionality of natcasesort()
7 */
8
9echo "*** Testing natcasesort() : basic functionality ***\n";
10
11$array = array ('A01', 'a1', 'b10',  'a01', 'b01');
12echo "\n-- Before sorting: --\n";
13var_dump($array);
14
15echo "\n-- After Sorting: --\n";
16var_dump(natcasesort($array));
17var_dump($array);
18
19echo "Done";
20?>
21--EXPECT--
22*** Testing natcasesort() : basic functionality ***
23
24-- Before sorting: --
25array(5) {
26  [0]=>
27  string(3) "A01"
28  [1]=>
29  string(2) "a1"
30  [2]=>
31  string(3) "b10"
32  [3]=>
33  string(3) "a01"
34  [4]=>
35  string(3) "b01"
36}
37
38-- After Sorting: --
39bool(true)
40array(5) {
41  [0]=>
42  string(3) "A01"
43  [3]=>
44  string(3) "a01"
45  [1]=>
46  string(2) "a1"
47  [4]=>
48  string(3) "b01"
49  [2]=>
50  string(3) "b10"
51}
52Done
53