Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why do we use == rather than ===
#6
(10-11-2010, 06:53 AM)phire nuk3r Wrote: Yes you are wrong.

I've just tested it. You're right. I swear I've needed to use strtolower() before for something to make sure it was right. Huh.

EDIT: Actually, I just checked my code, I forgot a "=", lol. Turns out I'm right.

EDIT AGAIN: You know, I'm not sure what I forgot. It's confused the hell out of me now.

Here is my code:

PHP Code:
if ("lol" == "LOL")
{
    echo 
"lol == LOL";
}
else
{
    echo 
"lol != LOL";


It echos "lol != LOL"
[Image: TYzKF.png]
Reply


Messages In This Thread
Why do we use == rather than === - by Orgy - 10-11-2010, 06:39 AM
RE: Why do we use == rather than === - by Disease - 10-11-2010, 06:42 AM
RE: Why do we use == rather than === - by Disease - 10-11-2010, 09:12 AM
RE: Why do we use == rather than === - by Orgy - 10-11-2010, 09:27 AM
RE: Why do we use == rather than === - by Orgy - 10-11-2010, 06:45 AM
RE: Why do we use == rather than === - by Orgy - 10-11-2010, 06:57 AM
RE: Why do we use == rather than === - by Chimi - 12-06-2010, 01:29 AM
RE: Why do we use == rather than === - by Orgy - 12-09-2010, 06:23 AM

Forum Jump:


Users browsing this thread: 8 Guest(s)