PHP 函数 ctype_print()
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";
}
}
?>