Re: How to find if a string is an integer?

From: Date: Thu, 12 Jun 2003 20:11:38 +0000
Subject: Re: How to find if a string is an integer?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151297@lists.php.net to get a copy of this message
Jumping in a little late here, but what about is_numeric()? Haven't tried it, but the php manual for is_int says: Note: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric(). On Thursday, June 12, 2003, at 03:31 PM, CPT John W. Holmes wrote:
Please try to use is_int() on a value passed from a form and see why. Also, in the beginning of this thread, the OP already said that is_int() had been tried. -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577


« previous php.general (#151297) next »