Please ask master the following code:
$p = 10;
$q = 8;
if ($p ++>17 or $q ++>7)//if (false or True)
{
echo ' truth ';
}else
{echo ' $p = '. $p. ' $q = '. $q;}
Why is the result of running: Truth? Instead of $p=11 $q = 7? I remember $ee=false or true;var_dump ($ee); its value should be false rather than true. Why is this?
Reply to discussion (solution)
is correct, or satisfies a condition is true, and $ee= (false or True) is true, the front is = higher than or operation level
You test the next few of them.
$ee =false or True
$ee ==false or True
$ee = (false or True)
It's all positive, huh?
if ($p ++>17 or $q ++>7)
Equivalent
if ($p >17 or $q >7)
{
}
$p + +; $q + +;
Add 1 after using the variable
You can try the first floor on the second floor method, all are positive solutions.
or replace it with and that's what you said.
Or one is really true
and a fake fake
if ($p ++>17 or $q ++>7) with $ee=false or true; Why? $ee =false or true; How is it calculated?