[REP++] Check if string is number or not number
#1

My problem is the next. I want the easiest way for detect a string if contains only numbers or numbers and characters or only characters.

What can i use?

Please don't reply me with IsNumeric stock because this make server crash.
Reply
#2

I'm gonna say IsNumeric and if it makes your server crash you're using it wrong. Alternatively you may use sscanf with quiet specifiers.
PHP код:
IsNumeric(string[]) return !sscanf(string"{d}"); 
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)