Page 1 of 1

What's mean --- "==="

Posted: Sun Oct 27, 2002 9:04 pm
by ptth
three "="?

what is this?

who can tell me?

Posted: Sun Oct 27, 2002 9:24 pm
by hob_goblin
=== means "Is identical".

Thanks

Posted: Sun Oct 27, 2002 10:29 pm
by ptth
i c


Thx

identical

Posted: Sun Oct 27, 2002 10:54 pm
by AVATAr
identical, in type and value? :?:

Posted: Mon Oct 28, 2002 1:34 am
by Takuma
Yep... it is.

$string1 = 2;
$string2 = "2";

if($string1 === $string2) {
echo "There's something wron with this script";
} else {
echo "PHP'S got it right!";
}

Posted: Mon Oct 28, 2002 1:35 am
by ReDucTor
in type and value.

e.g.
1 == "1" - true
1 == 1.0 - true
1 == 1 - true

1 === "1" - false
1 === 1.0 - false
1 === 1 - true