(PHP 4 >= 4.0.4, PHP 5, PHP 7)
ctype_digit — Check for numeric character(s)
bool ctype_digit ( string $text )
Checks if all of the characters in the provided string, text, are numerical.
text
The tested string.
联系方式: