|
PHP5中文手册
ctype_punct(PHP 4 >= 4.0.4, PHP 5) ctype_punct — Check for any printable character which is not whitespace or an alphanumeric character 说明
bool ctype_punct
( string $text
)
Checks if all of the characters in the provided string, text , are punctuation character. 参数
返回值Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise. 范例
Example#1 A ctype_punct() example
<?php 上例将输出:
|