PHP 函数 ctype_space() PHP 函数 ctype_punct() PHP 函数 ctype_upper() PHP 函数 ctype_space() <?php $strings = array('\n\r\t', '\test123' ); foreach ($strings as $test) { if (ctype_space($test)) { echo "$test consists of all whitespace characters. \n"; }else { echo "$test does not have all whitespace characters. \n"; } } ?> PHP 函数 ctype_punct() PHP 函数 ctype_upper()