For example, there is the following:
echo 1; echo 2; echo 3; echo 4;
By what means, you can display only 2 first echo, i.e. 1 and 2?
For example, there is the following:
echo 1; echo 2; echo 3; echo 4;
By what means, you can display only 2 first echo, i.e. 1 and 2?
<?php $a = 1; $b = 2; if ($a+$a == $b) { echo 'fv allow'; } else { if ($b-$a == $a-$a) { echo 'sv allow'; } else { if ($a+$b*2 == 10) { echo 'tv allow'; } } } ?>
For example, so, we change the value of variables so that different conditions are met.
remove echo 3; echo 4; It is obvious!
If you need to deduce 2 of 4, then two are eliminated, in any case, by some condition. And if there is a condition, then if
Source: https://ru.stackoverflow.com/questions/32182/
All Articles