1--TEST--
2Test ctype_xdigit() function : basic functionality
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7/* Prototype  : bool ctype_xdigit(mixed $c)
8 * Description: Checks for character(s) representing a hexadecimal digit
9 * Source code: ext/ctype/ctype.c
10 */
11
12echo "*** Testing ctype_xdigit() : basic functionality ***\n";
13$orig = setlocale(LC_CTYPE, "C");
14
15$c1 = 'abcdefABCDEF0123456789';
16$c2 = 'face 034';
17
18var_dump(ctype_xdigit($c1));
19var_dump(ctype_xdigit($c2));
20
21setlocale(LC_CTYPE, $orig);
22?>
23===DONE===
24--EXPECTF--
25*** Testing ctype_xdigit() : basic functionality ***
26bool(true)
27bool(false)
28===DONE===
29