Re: Checking string for invalid characters...
| From: | Paolo Dell'Unto | Date: | Thu, 06 Jul 2000 15:37:51 +0000 |
| Subject: | Re: Checking string for invalid characters... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5231@lists.php.net to get a copy of this message | ||
Check out the string functions section in the manual.....it should be easy to set up your routine. Probably instead of checking for allowed chars you should check for unallowed chars and evaluate the replacement of them....but there is a really complete set, u'll find the ones who match your needs.
Ciao
Paolo Dell'Unto
At 11.30 06/07/00 -0400, you wrote:
Hello, I was wondering if some some had a routine which would check a string for invalid characters. I figure the logic would be something of the following: The user passes me a string and I compare character by character against my array of "allowed" strings. but this is a while looop with a while loop and it can get kind of cumbersome. If any one already has a good routine or solution I would apreciate any help. Thanks Marcelo PS: Please reply to my email address since my mail system cannot handle me being on this list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-------------------------------------------------------------- Paolo Dell'Unto <paolo@dellunto.net> ICQ # 770759 PGP KEY Available on request