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