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