PHP ctype_print() Function Example <?php$str="Hello 123";if(ctype_print($str))echo("$strcontains all printable characters.\n");elseecho("$strdoes not contain all printable characters.\n");$str="I am 123@#!~*.()";if(ctype_print($str))echo("$strcontains all printable characters....
无涯教程-PHP - ctype_print()函数 ctype_print() - 语法 ctype_print ( $text ); 1. 此函数检查提供的字符串text中的所有字符是否均可打印。 ctype_print() - 返回值 如果文本中的每个字符都将实际创建输出(包括空格),则返回true。如果文本包含控制字符或根本不具有任何输出或控制功能的字符,则返回False。