Fw: [PHP] function right on PHP3, wrong on PHP4
| From: | (Delbono) | Date: | Mon, 03 Jul 2000 16:35:53 +0000 |
| Subject: | Fw: [PHP] function right on PHP3, wrong on PHP4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4526@lists.php.net to get a copy of this message | ||
Hello,
I generated this function:
function is_numb($val,$min,$max){
if($res = ereg("[0-9]{$min,$max}",$val)){return $val;}else{return
false;}
}
and with PHP3 works correctly, while instead with PHP4 it generates the
following error:
Parse error: parse error, expecting `'}'' in
c:\apache\htdocs\look4save\cpclienti\insdati.php3 on line 4
OS is windows 2000, web server is Apache.
TIA
> Nicola Delbono
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>