The following operation returns true:
var_dump("1" == "1e0"); //1 == 1 -> true
But if I add an "e" at the end of the second string, it returns false:
var_dump("1" == "1e0e"); //1 == 1 -> false???
If you do the following, return 2:
echo (int)"1" + (int)"1e0e"; // 2
My question is because the second operation returns false if in the third operation, I am converting the values to integer and returns 1 + 1, ie in the second operation the comparison should be 1 == 1, would not have to return true?
Another question is if I am comparing 2 strings, why does the first operation return true if there are two different strings?