Re: check for variable value but need 0 to be good ?

From: Date: Wed, 02 Aug 2000 10:40:31 +0000
Subject: Re: check for variable value but need 0 to be good ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9665@lists.php.net to get a copy of this message
Craig Vincent wrote: > > > Make -1 the default, then compare the input against -1. > > I think isset() would be a much more effecient approach. No, because isset() checks for existing not for legal number value. In newer php look for is_numeric(). -- pozdrawiam.. ## ## | Sylwester Zarębski - ISP Group | #### ## | e-mail: sylwek@isp.net.pl | ## ## ## | ICQ uin: #45780888 | ## #### ## | Administrator ISP.NET.PL |

« previous php.general (#9665) next »