in reply to Re^2: check if 2 values are equalin thread check if 2 values are equal
I think you can do away with the third condition of ($val1 == $val2).
Tricky one. I thought the same at first.
But think of 0 and 0.0 or 0E0 - all numerically equal, but not sting equal.
Same goes for 1.1 and 1.10 and of course, there's more to think about.
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (155 votes). Check out past polls.