Checking a strings case
| From: | ODCS | Date: | Tue, 15 Apr 2003 05:33:23 +0000 |
| Subject: | Checking a strings case | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143868@lists.php.net to get a copy of this message | ||
I'm trying to create a function to check a users input for "foul" language
and want to be able to check variations of case (i.e. CasE or cAsE). I have
checked out all the ereg and str* functions but not quite sure how to do
this. These "foul" words are in an array. I have it working now if a user
inputs 'case' or 'CASE'.
TIA