Re: Validation class

From: Date: Thu, 11 Apr 2002 05:27:15 +0000
Subject: Re: Validation class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5331@lists.php.net to get a copy of this message
On Thu, 11 Apr 2002 01:07:18 +0200, Wolfram Kriesing wrote: >what do u think of having a validation class inside PEAR, >which validates various stuff, >such as: >- check if value is a number >- check if value exists at all >- check if value is at least X characteers long >- check if value is a proper date >- check if value is a proper email address When I think of validation, some routines to check the validity of postal codes, telephone numbers or credit card ids come to my mind. But since there are no international rules for such numbers, we would need to make some heavy I18N here (Germany has e.g. postcal codes with 5 digits, while Belgium has only 4 digits). Anyways, if you want to take over this task, feel free to do it ;-). - Martin -- Martin Jansen, <mail@martin-jansen.de> http://www.martin-jansen.de/

« previous php.pear.dev (#5331) next »