Answer the question
In order to leave comments, you need to log in
"0" == "00" in php. What's the catch?
if("0" == "00") echo('equal');
else echo('not equal');
Answer the question
In order to leave comments, you need to log in
Implicit comparison, i.e. only content is compared (0 and 00 are converted to int)
https://www.php.net/manual/ru/types.comparisons.php
https://www.php.net/manual/ru/language.operators.c. ..
If both operands are strings containing numbers, or one operand is a number and the other is a string containing numbers, then the comparison is performed numerically
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question