Re: How to find if a string is an integer?
| From: | Jason Wong | Date: | Thu, 12 Jun 2003 19:58:06 +0000 |
| Subject: | Re: How to find if a string is an integer? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151296@lists.php.net to get a copy of this message | ||
On Friday 13 June 2003 03:49, DvDmanDT wrote:
> To be honest, I haven't really understood what three of them does... Is it
> the same value without type casting?
It takes into account the variable type as well:
(1 == '1') // true
(1 === '1') // false
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
All is well that ends well.
-- John Heywood
*/