Quote:
It's because they're strings that the more efficient === may be used. You only need to use == when you want type not to matter. It's more work for the processor though because it has to determine if the types are different, if one can be converted to the other, and then if they're equal or not after conversion.
Hm, I actually don't know which is more efficient. It might be more efficient to compare them without also comparing the types (that's how I've seen it phrased, that === is "== plus checking types"), or it might be more efficient to use === because it only checks one thing, or it might depend on whether they are or are not the same type (so that here it would not matter because they are).