1--TEST--
2Test range() function with string digits
3--FILE--
4<?php
5echo "Only digits\n";
6var_dump( range("1", "9") );
7var_dump( range("9", "1") );
8
9echo "Only digits and char\n";
10var_dump( range("9", "A") );
11var_dump( range("A", "9") );
12echo "Done\n";
13?>
14--EXPECT--
15Only digits
16array(9) {
17  [0]=>
18  string(1) "1"
19  [1]=>
20  string(1) "2"
21  [2]=>
22  string(1) "3"
23  [3]=>
24  string(1) "4"
25  [4]=>
26  string(1) "5"
27  [5]=>
28  string(1) "6"
29  [6]=>
30  string(1) "7"
31  [7]=>
32  string(1) "8"
33  [8]=>
34  string(1) "9"
35}
36array(9) {
37  [0]=>
38  string(1) "9"
39  [1]=>
40  string(1) "8"
41  [2]=>
42  string(1) "7"
43  [3]=>
44  string(1) "6"
45  [4]=>
46  string(1) "5"
47  [5]=>
48  string(1) "4"
49  [6]=>
50  string(1) "3"
51  [7]=>
52  string(1) "2"
53  [8]=>
54  string(1) "1"
55}
56Only digits and char
57array(9) {
58  [0]=>
59  string(1) "9"
60  [1]=>
61  string(1) ":"
62  [2]=>
63  string(1) ";"
64  [3]=>
65  string(1) "<"
66  [4]=>
67  string(1) "="
68  [5]=>
69  string(1) ">"
70  [6]=>
71  string(1) "?"
72  [7]=>
73  string(1) "@"
74  [8]=>
75  string(1) "A"
76}
77array(9) {
78  [0]=>
79  string(1) "A"
80  [1]=>
81  string(1) "@"
82  [2]=>
83  string(1) "?"
84  [3]=>
85  string(1) ">"
86  [4]=>
87  string(1) "="
88  [5]=>
89  string(1) "<"
90  [6]=>
91  string(1) ";"
92  [7]=>
93  string(1) ":"
94  [8]=>
95  string(1) "9"
96}
97Done
98