public static function Ctype::ctype_digit in Lockr 7.3
Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
Parameters
string|int $text:
Return value
bool
See also
File
- vendor/
symfony/ polyfill-ctype/ Ctype.php, line 80
Class
- Ctype
- Ctype implementation through regex.
Namespace
Symfony\Polyfill\CtypeCode
public static function ctype_digit($text) {
$text = self::convert_int_to_char_for_ctype($text);
return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
}