Re: diference between == and ===

From: Date: Wed, 12 May 2004 21:28:47 +0000
Subject: Re: diference between == and ===
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-34414@lists.php.net to get a copy of this message
=== is a strict equals. if you have a string $s = '12345' then if(12345 == $s) is true but if(12345 === $s) is not true because 12345 is an int and '12345' is a string -dave Bruno Braga wrote:
Hi guys.. Wich is the diference between if ($var == '1') or if ($var === '1') == means equality and what does the === means ?! Thanks! Bruno


« previous php.db (#34414) next »