Validating a string
| From: | Joachim de Boer | Date: | Sat, 16 Sep 2000 12:43:45 +0000 |
| Subject: | Validating a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17047@lists.php.net to get a copy of this message | ||
Hello,
I want to validate a string. If the string ends on -en it should be transformd to a new string
whithout the -en.
For example:
$string = "broeken";
$string = validate($string);
-> now string had become "broek";
$string = "paard";
$string = validate($string);
-> nothing has happend to the string
How can I acomplish this ?
Kind regards,
Joachim