3 ms·
I whole-heartedly agree here. You really shouldn't have to implement workarounds to know you're comparing two integers, or two booleans. === feels like a workar
by mikegioia 12y ago
I whole-heartedly agree here. You really shouldn't have to implement workarounds to know you're comparing two integers, or two booleans. === feels like a workaround to me and the amount of times I've seen people forget the last = is high. That's probably my #1 gripe with PHP.
- thejosh 12y agoYou should always use === unless you want problems.
- imakesnowflakes 12y agoExcept when you want to deal with array keys, where numeric strings gets casted to ints...