You are here

public static function Ctype::ctype_print in Lockr 7.3

Returns TRUE if every character in text will actually create output (including blanks). Returns FALSE if text contains control characters or characters that do not have any output or control function at all.

Parameters

string|int $text:

Return value

bool

See also

https://php.net/ctype-print

File

vendor/symfony/polyfill-ctype/Ctype.php, line 128

Class

Ctype
Ctype implementation through regex.

Namespace

Symfony\Polyfill\Ctype

Code

public static function ctype_print($text) {
  $text = self::convert_int_to_char_for_ctype($text);
  return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
}