ctype_punct
PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_punct - Check for any printable character which is not whitespace or an
alphanumeric character
Code Examples
Example #1 A ctype_punct example
Result: The string ABasdk!@!$# does not consist of all punctuation.
The string !@ # $ does not consist of all punctuation.
The string *&$() consists of all punctuation.