1--TEST--
2Test ctype_punct() function : basic functionality
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7/* Prototype  : bool ctype_punct(mixed $c)
8 * Description: Checks for any printable character which is not whitespace
9 * or an alphanumeric character
10 * Source code: ext/ctype/ctype.c
11 */
12
13echo "*** Testing ctype_punct() : basic functionality ***\n";
14
15$orig = setlocale(LC_CTYPE, "C");
16
17$c1 = '@!$*';
18$c2 = 'hello, world!';
19
20var_dump(ctype_punct($c1));
21var_dump(ctype_punct($c2));
22
23setlocale(LC_CTYPE, $orig);
24?>
25===DONE===
26--EXPECTF--
27*** Testing ctype_punct() : basic functionality ***
28bool(true)
29bool(false)
30===DONE===
31