Re: gettype() returning string instead of integer

From: Date: Thu, 14 Dec 2000 09:28:27 +0000
Subject: Re: gettype() returning string instead of integer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-30275@lists.php.net to get a copy of this message
Brian Curtis wrote: [..cut..] > > There is one really big gotcha: HTTP doesn't allow differentiation > > between integers and strings in GET and POST, so everything is a > > string. > > I was afraid that would be the answer. > > OK then, on to my next question. Anyone have a quick, > off-the-top-of-their-head solution to check that a value passed using GET > is_type() "x"? You can use is_numeric(); instead of is_integer(); -- pozdrawiam.. ## ## | Sylwester Zarębski - ISP Group | #### ## | e-mail: sylwek@isp.net.pl | ## ## ## | ICQ uin: #45780888 | ## #### ## | Administrator ISP.NET.PL |

« previous php.general (#30275) next »