[ciapug] Re: Re: yeah, weakly typed languages

carl-olsen at mchsi.com carl-olsen at mchsi.com
Wed Apr 4 13:00:04 CDT 2007


http://us.php.net/manual/en/language.operators.comparison.php

Note that typecasting will NOT prevent the default behavior for converting two numeric strings to numbers when comparing them.


 -------------- Original message ----------------------
From: Mike Parks <mparks at captainjack.com>
> "===" compares on equal text and type. "01234" == 1234 are equally 
> compared as string values equals true. But "01234" === 1234 compared as 
> a string value is true, but "01234" is a string and 1234 is an integer 
> will return false with "==="

-------------- next part --------------
An embedded message was scrubbed...
From: Mike Parks <mparks at captainjack.com>
Subject: [ciapug] Re: Re: yeah, weakly typed languages
Date: Wed, 4 Apr 2007 17:44:40 +0000
Size: 39165
Url: http://cialug.org/pipermail/ciapug/attachments/20070404/8c737d62/attachment-0001.mht


More information about the ciapug mailing list