ctype_punct

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Check for any printable character which is not whitespace or an alphanumeric character
<?php ctype_punct(mixed $text): bool