Best way to detect if players entered text is only digits?
#8

Quote:
Originally Posted by Meller
Посмотреть сообщение
What about strval?

PHP код:
if(strval(string))) 
Wouldn't work. It returns 0 when the string is not a number.
But it also returns 0 when the integer is equal to zero.
That would deny '0000' as a 4 digit pin code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)