PHP 函数 ctype_print() PHP 函数 ctype_lower() PHP 函数 ctype_punct() PHP 函数 ctype_print() <?php $strings = array('asdf\n\r\t', 'k211', "fooo#int%@"); foreach ($strings as $test) { if (ctype_print($test)) { echo "$test consists of all printable characters. \n"; }else { echo "$test does not have all printable characters. \n"; } } ?> PHP 函数 ctype_lower() PHP 函数 ctype_punct()