ctype_punctCheck for any printable character which is not whitespace or an alphanumeric character Description
bool ctype_punct
( string
$text
)
Checks if all of the characters in the provided string,
Parameters
Return Values
Returns Examples
Example #1 A ctype_punct example
<?php The above example will output: The string ABasdk!@!$# does not consist of all punctuation. The string !@ # $ does not consist of all punctuation. The string *&$() consists of all punctuation. Notes
See Also
|