string validating
| From: | Martin Dziura | Date: | Thu, 13 Mar 2003 01:02:09 +0000 |
| Subject: | string validating | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139419@lists.php.net to get a copy of this message | ||
hi,
im sort of new to php, and i have the following question.
im reading in a string from a database, this string will become a file name. so i need to strip everything BUT lowercase a-z and 0-9. well im strtolower so i dont need to worry about upper case. blank spaces get replaced with _
i was trying chr() to change all unwanted chars.
TIA
Martin
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail