1--TEST--
2Test ctype_alnum() function : usage variations - different integers
3--EXTENSIONS--
4ctype
5--FILE--
6<?php
7/*
8 * Pass different integers to ctype_alnum() to test which character codes are considered
9 * valid alphanumeric characters
10 */
11
12echo "*** Testing ctype_alnum() : usage variations ***\n";
13
14$orig = setlocale(LC_CTYPE, "C");
15
16for ($i = 0; $i < 256; $i++) {
17    if (ctype_alnum(chr($i))) {
18        echo "character code $i is alpha numeric\n";
19    }
20}
21
22setlocale(LC_CTYPE, $orig);
23?>
24--EXPECT--
25*** Testing ctype_alnum() : usage variations ***
26character code 48 is alpha numeric
27character code 49 is alpha numeric
28character code 50 is alpha numeric
29character code 51 is alpha numeric
30character code 52 is alpha numeric
31character code 53 is alpha numeric
32character code 54 is alpha numeric
33character code 55 is alpha numeric
34character code 56 is alpha numeric
35character code 57 is alpha numeric
36character code 65 is alpha numeric
37character code 66 is alpha numeric
38character code 67 is alpha numeric
39character code 68 is alpha numeric
40character code 69 is alpha numeric
41character code 70 is alpha numeric
42character code 71 is alpha numeric
43character code 72 is alpha numeric
44character code 73 is alpha numeric
45character code 74 is alpha numeric
46character code 75 is alpha numeric
47character code 76 is alpha numeric
48character code 77 is alpha numeric
49character code 78 is alpha numeric
50character code 79 is alpha numeric
51character code 80 is alpha numeric
52character code 81 is alpha numeric
53character code 82 is alpha numeric
54character code 83 is alpha numeric
55character code 84 is alpha numeric
56character code 85 is alpha numeric
57character code 86 is alpha numeric
58character code 87 is alpha numeric
59character code 88 is alpha numeric
60character code 89 is alpha numeric
61character code 90 is alpha numeric
62character code 97 is alpha numeric
63character code 98 is alpha numeric
64character code 99 is alpha numeric
65character code 100 is alpha numeric
66character code 101 is alpha numeric
67character code 102 is alpha numeric
68character code 103 is alpha numeric
69character code 104 is alpha numeric
70character code 105 is alpha numeric
71character code 106 is alpha numeric
72character code 107 is alpha numeric
73character code 108 is alpha numeric
74character code 109 is alpha numeric
75character code 110 is alpha numeric
76character code 111 is alpha numeric
77character code 112 is alpha numeric
78character code 113 is alpha numeric
79character code 114 is alpha numeric
80character code 115 is alpha numeric
81character code 116 is alpha numeric
82character code 117 is alpha numeric
83character code 118 is alpha numeric
84character code 119 is alpha numeric
85character code 120 is alpha numeric
86character code 121 is alpha numeric
87character code 122 is alpha numeric
88