Re: diference between == and ===

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Bruno,

Monday, May 3, 2004, 2:16:29 PM, you wrote:

BB> Wich is the diference between if ($var == '1')  or if ($var === '1')

BB> == means equality and what does the === means ?!

Forced-type equality. I.e. it checks that $var is not only equal to 1,
but is an integer also (as opposed to a string that evaluates to 1
when converted).

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux