1--TEST--
2Test ctype_punct() function : usage variations - different integers
3--EXTENSIONS--
4ctype
5--FILE--
6<?php
7/*
8 * Pass different integers to ctype_punct() to test which character codes are considered
9 * valid punctuation characters
10 */
11
12echo "*** Testing ctype_punct() : usage variations ***\n";
13
14$orig = setlocale(LC_CTYPE, "C");
15
16for ($c = 1; $c < 256; $c++) {
17    if (ctype_punct(chr($c))) {
18        echo "character code $c is punctuation\n";
19    }
20}
21
22setlocale(LC_CTYPE, $orig);
23?>
24--EXPECT--
25*** Testing ctype_punct() : usage variations ***
26character code 33 is punctuation
27character code 34 is punctuation
28character code 35 is punctuation
29character code 36 is punctuation
30character code 37 is punctuation
31character code 38 is punctuation
32character code 39 is punctuation
33character code 40 is punctuation
34character code 41 is punctuation
35character code 42 is punctuation
36character code 43 is punctuation
37character code 44 is punctuation
38character code 45 is punctuation
39character code 46 is punctuation
40character code 47 is punctuation
41character code 58 is punctuation
42character code 59 is punctuation
43character code 60 is punctuation
44character code 61 is punctuation
45character code 62 is punctuation
46character code 63 is punctuation
47character code 64 is punctuation
48character code 91 is punctuation
49character code 92 is punctuation
50character code 93 is punctuation
51character code 94 is punctuation
52character code 95 is punctuation
53character code 96 is punctuation
54character code 123 is punctuation
55character code 124 is punctuation
56character code 125 is punctuation
57character code 126 is punctuation
58