function right on PHP3, wrong on PHP4

From: Date: Mon, 03 Jul 2000 16:25:56 +0000
Subject: function right on PHP3, wrong on PHP4
Groups: php.general 
Request: Send a blank email to php-general+get-4523@lists.php.net to get a copy of this message
Hello, I greated 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

« previous php.general (#4523) next »