1--TEST--
2Test array_multisort() function : case-sensitive
3--FILE--
4<?php
5echo "*** Testing array_multisort() : case-sensitive\n";
6
7$a = array(
8    'Second',
9    'First.1',
10    'First.2',
11    'First.3',
12    'Twentieth',
13    'Tenth',
14    'Third',
15);
16
17$b = array(
18    '2 a',
19    '1 bb 1',
20    '1 bB 2',
21    '1 BB 3',
22    '20 c',
23    '10 d',
24    '3 e',
25);
26
27array_multisort($b, SORT_STRING, $a);
28
29var_dump($a, $b);
30
31?>
32--EXPECT--
33*** Testing array_multisort() : case-sensitive
34array(7) {
35  [0]=>
36  string(7) "First.3"
37  [1]=>
38  string(7) "First.2"
39  [2]=>
40  string(7) "First.1"
41  [3]=>
42  string(5) "Tenth"
43  [4]=>
44  string(6) "Second"
45  [5]=>
46  string(9) "Twentieth"
47  [6]=>
48  string(5) "Third"
49}
50array(7) {
51  [0]=>
52  string(6) "1 BB 3"
53  [1]=>
54  string(6) "1 bB 2"
55  [2]=>
56  string(6) "1 bb 1"
57  [3]=>
58  string(4) "10 d"
59  [4]=>
60  string(3) "2 a"
61  [5]=>
62  string(4) "20 c"
63  [6]=>
64  string(3) "3 e"
65}
66