Re: == vs ===

From: Date: Fri, 05 Jan 2001 23:55:20 +0000
Subject: Re: == vs ===
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32979@lists.php.net to get a copy of this message
1 == "1" evaluates to true 1 === "1" evaluates to false So, == does type conversion and then checks for equality while === does not do any type conversion. In order for an === to return true the types of the two operands must also match. -Rasmus On Sat, 6 Jan 2001, Dallas Kropka wrote: > I know this is somewhere in the logs, but I cant find it.... > > could someone explain or point to the difference between "==" and "===" in > an if statement... > > > ex... > > if($rs === "FALSE") > > what does this do differently than > > if ($rs == "FALSE") >

« previous php.general (#32979) next »