What about `ctype_digit` for ensure that the string is a number? (or even cast string to int)