Here is an example that might help.
$a = 1;
if($a == true)
if($a === true)
The first and second conditional statements execute but the third doesn't.
This is because $a evaluates to true but is not of type 'boolean'. === and
!== not only compare value but type as well.
"Chris Boget" <[EMAIL PROTECTED]> wrote in message
> > // Note that !== did not exist until 4.0.0-RC2
> I took a quick look at the docs to find out what !== meant
> (because I'd never seen it before). I'm not sure I understand
> what it's use is. Could someone explain why you would use
> it and for what purpose?
> I couldn't really infer from the example that was included in
> the previous message.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php