Closed tienvx closed 10 years ago
Hey @tienvx,
Good catch, looks like is_numeric()
actually returns true
for hex strings - I didn't know that! I'm thinking though, that perhaps a better fix would be to use ctype_digit()
instead of is_numeric()
here.
What do you think?
I think ctype_digit()
will return false if $value is float. So we should use is_numeric()
.
Support hexadecimal values.