Re: cvs: pear /Validate Validate.php
| From: | Pierre-Alain Joye | Date: | Wed, 29 May 2002 09:33:45 +0000 |
| Subject: | Re: cvs: pear /Validate Validate.php | ||
| References: | 1 2 3 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-4239@lists.php.net to get a copy of this message | ||
On Wed, 29 May 2002 11:31:09 +0200
Pierre-Alain Joye <paj@pearfr.org> wrote:
> function number($number, $decimal = null, $dec_prec = null, $min =
> null, $max = null)
> {
> $dec_prec = $dec_prec ? "{1,$dec_prec}" : '+';
> $dec_regex = $decimal ? '[' . $decimal . ']' . '[0-9]'
> .
> $dec_prec : '';
oops :)
Allow a ',|.' syntax as well as simply '.'.
pa