1--TEST-- 2Test ctype_upper() function : usage variations - different integers 3--SKIPIF-- 4<?php require_once('skipif.inc'); ?> 5--FILE-- 6<?php 7/* Prototype : bool ctype_upper(mixed $c) 8 * Description: Checks for uppercase character(s) 9 * Source code: ext/ctype/ctype.c 10 */ 11 12/* 13 * Pass different integers to ctype_upper() to test which character codes are considered 14 * valid uppercase characters 15 */ 16 17echo "*** Testing ctype_upper() : usage variations ***\n"; 18$orig = setlocale(LC_CTYPE, "C"); 19 20for ($i = 0; $i < 256; $i++) { 21 if (ctype_upper($i)) { 22 echo "character code $i is a uppercase character\n"; 23 } 24} 25 26setlocale(LC_CTYPE, $orig); 27?> 28===DONE=== 29--EXPECTF-- 30*** Testing ctype_upper() : usage variations *** 31character code 65 is a uppercase character 32character code 66 is a uppercase character 33character code 67 is a uppercase character 34character code 68 is a uppercase character 35character code 69 is a uppercase character 36character code 70 is a uppercase character 37character code 71 is a uppercase character 38character code 72 is a uppercase character 39character code 73 is a uppercase character 40character code 74 is a uppercase character 41character code 75 is a uppercase character 42character code 76 is a uppercase character 43character code 77 is a uppercase character 44character code 78 is a uppercase character 45character code 79 is a uppercase character 46character code 80 is a uppercase character 47character code 81 is a uppercase character 48character code 82 is a uppercase character 49character code 83 is a uppercase character 50character code 84 is a uppercase character 51character code 85 is a uppercase character 52character code 86 is a uppercase character 53character code 87 is a uppercase character 54character code 88 is a uppercase character 55character code 89 is a uppercase character 56character code 90 is a uppercase character 57===DONE=== 58