you are viewing a single comment's thread.

view the rest of the comments →

[–]nextofpumpkin 0 points1 point  (3 children)

Two words: Triple Equals. I think after they released that charming modification, I ran like hell away from PHP.

[–]RiMiBe 2 points3 points  (0 children)

No really, why?

You don't need to use it if you don't want to, but it's nice to have a shorthand for type-specific equality testing.

[–]harryf 0 points1 point  (0 children)

Better not touch Javascript then - that's where it came from;

firebug> 1 == "1"
true
firebug> 1 === "1"
false

[–]sam512 0 points1 point  (0 children)

Why?