Re: diference between == and ===

From: Date: Mon, 03 May 2004 13:20:45 +0000
Subject: Re: diference between == and ===
Groups: php.db 
Request: Send a blank email to php-db+get-34253@lists.php.net to get a copy of this message
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

« previous php.db (#34253) next »