To be honest, I haven't really understood what three of them does... Is it the same value without type casting? "Jean-Christian Imbeault" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Dvdmandt wrote: > > It's not that killing... :p > > preg_match("#^-?[0-9]+$#",$_POST["var_int"]); > > Not *that's* a mouthful ... > > > I was also thinking about that === operator.. And this: > > if(((string)((int)$_POST["var_int"]))==$_POST["var_int"]) > > Cute. Might actually work too! Wonder if there would be any difference > in using == or === in your suggestion? > > Jc >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php