2 /* Prototype : bool ctype_punct(mixed $c)
3 * Description: Checks for any printable character which is not whitespace
4 * or an alphanumeric character
5 * Source code: ext/ctype/ctype.c
8 echo "*** Testing ctype_punct() : basic functionality ***\n";
10 $orig = setlocale(LC_CTYPE
, "C");
13 $c2 = 'hello, world!';
15 var_dump(ctype_punct($c1));
16 var_dump(ctype_punct($c2));
18 setlocale(LC_CTYPE
, $orig);