1--TEST-- 2Test ctype_space() function : usage variations - different integers 3--SKIPIF-- 4<?php require_once('skipif.inc'); ?> 5--FILE-- 6<?php 7/* 8 * Pass different integers to ctype_space() to test which character codes are considered 9 * valid whitespace characters 10 */ 11 12echo "*** Testing ctype_space() : usage variations ***\n"; 13 14$orig = setlocale(LC_CTYPE, "C"); 15 16for ($c = 1; $c < 256; $c++) { 17 if (ctype_space($c)) { 18 echo "character code $c is a space character\n"; 19 } 20} 21setlocale(LC_CTYPE, $orig); 22?> 23--EXPECT-- 24*** Testing ctype_space() : usage variations *** 25character code 9 is a space character 26character code 10 is a space character 27character code 11 is a space character 28character code 12 is a space character 29character code 13 is a space character 30character code 32 is a space character 31