PHP is not a small number of parts divided into. 3 Is there a loophole?
To get a value from an HTML page, the database reads a value, judging if they're not equal to doing something (! =) when the fractional portion of the two numbers is. 3 o'clock actually judging the error;
For example, two numbers are 54.3 or 55.3 it actually determines that true should be false, the fractional part is other when there is no problem, such as 54.2
Did you ever come across it?
------Solution--------------------
No problem ... Landlord your code has a problem or the brain short-circuited it.
PHP code
var_dump (54.3! = 55.3);//bool (true)
------ Solution--------------------
Multiple tests, no problem found
------solution--------------------
PHP code
'; Echo ' $ Var[\ ' peilv\ ': ', $var [' Peilv '], ' $tempCurPeilv: ', $tempCurPeilv; Var_dump ($var [' peilv ']! = $TEMPCURPEILV);
------Solution--------------------
April Fools ' day haha
PHP code
boolean Trueboolean false$var[' Peilv ']:55.3$tempcurpeilv:55.3boolean false
------Solution--------------------
because your comparison becomes a string and a floating-point number or other type of comparison, the result is the exception you said.