Name
ctype_digit
Synopsis
int ctype_digit(string string
)
Returns true
if every
character in string
is a decimal digit
(the numbers 0-9), or false
if
string contains any non-digit characters.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.