Re: cvs: pear /Validate Validate.php

From: Date: Wed, 29 May 2002 10:13:13 +0000
Subject: Re: cvs: pear /Validate Validate.php
References: 1 2 3 4  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4246@lists.php.net to get a copy of this message
Pierre-Alain Joye wrote: > > 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 '.'. > Done. Just supply '.,' as the param, no need for the regex style. Tomas V.V.Cox

« previous php.pear.cvs (#4246) next »