Ctype::ctype_punct( string|int $text )
Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise.
Description
See also
Parameters
- $text
-
(Required)
Return
(bool)
Source
File: vendor/symfony/polyfill-ctype/Ctype.php
public static function ctype_punct($text)
{
$text = self::convert_int_to_char_for_ctype($text);
return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
}