Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20852 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21951 invoked by uid 1010); 29 Nov 2005 17:50:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21935 invoked from network); 29 Nov 2005 17:50:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2005 17:50:55 -0000 X-Host-Fingerprint: 194.185.112.82 194-185-112-82.f5.ngi.it Linux 2.4/2.6 Received: from ([194.185.112.82:964] helo=roast.hq.mobyt.it) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 52/4C-14828-EF49C834 for ; Tue, 29 Nov 2005 12:50:55 -0500 Received: (qmail 4426 invoked from network); 29 Nov 2005 18:48:57 +0100 Received: from webdev.hq.mobyt.it (HELO ?10.20.20.4?) (10.20.20.4) by 0 with SMTP; 29 Nov 2005 18:48:57 +0100 Message-ID: <438C94FC.2030607@beccati.com> Date: Tue, 29 Nov 2005 18:50:52 +0100 User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: ben.litton@gmail.com CC: internals@lists.php.net References: <438C7A4C.9090503@fission.org.uk> <8E.A3.14828.D718C834@pb1.pair.com> <438C8E07.7050206@fission.org.uk> <438C91AC.5050305@beccati.com> <438C92F2.4010802@fission.org.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: is_int/is_numeric possible bug From: php@beccati.com (Matteo Beccati) Ben Litton wrote: > is_numeric will test if it's a numeric string. Maybe is_int should do > the same, but apparently it doesn't. > > You could always do an is_numeric and if it returns true, cast it as an > int. Or use: www.php.net/ctype_digit Ciao ciao -- Matteo Beccati http://phpadsnew.com http://phppgads.com