Only Numbers
Hello,
I'm pretty sure it was a function like this. So, It check If the entered words contain only numbers, no words PHP Code:
But If I type 123456A, it allow him and pass next |
Re: Only Numbers
Use is_str_num()
|
Re: Only Numbers
PHP Code:
although listen for what bugsy told you, this example is just for clarification! |
Re: Only Numbers
My bad, I wanted to say that If I type 123456 [Need to type regular numbers to pass] it let me go, but If I type 123456A it still pass me <-- [And this is what I want to block] [What I want to block it's that , If I type some numbers and in that numbers contain a words is should return ]
|
Re: Only Numbers
It lock like doing it negative it solved my problem
PHP Code:
|
Re: Only Numbers
Or:
PHP Code:
|
Re: Only Numbers
Beating this one to death guys..I'd just use the native is_str_num() and call it a day. Natsheh's function is better/more efficient than what you posted, loiraolhosazul.
|
All times are GMT -4. The time now is 16:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.