How to detect numbers and letters in an string?
i think i have not to much to say, i want to "read" and string, and if it has a letter, block it, or if it has more than 3 numbers, block it.how to do it?
|
Re: How to detect numbers and letters in an string?
PHP Code:
|
Re: How to detect numbers and letters in an string?
yeah..buy how should i use it?
look: PHP Code:
|
Re: How to detect numbers and letters in an string?
PHP Code:
|
Re: How to detect numbers and letters in an string?
Don't use strlen() in a loop Bugsy :p.
Try this if String was not modified before: Code:
Otherwise use this : Code:
|
Re: How to detect numbers and letters in an string?
yeah ! thanks !! and...is there a way to detect signs?(i mean !"·$%&.,/() etc.)
|
Re: How to detect numbers and letters in an string?
Quote:
You left out a closing brace for the for-loop in both CountNumbers functions |
Re: How to detect numbers and letters in an string?
PHP Code:
|
Re: How to detect numbers and letters in an string?
Quote:
|
Re: How to detect numbers and letters in an string?
so what sould i do?T_T
|
| All times are GMT -4. The time now is 15:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.