Consider the following code:
$a = $b > $c ? $c : $b;
The question is, if $ b is a set of operations, if the result of logic $ b > $ c is false, I will have to repeat all the existing operation in $ b.
I did this, but I wonder if there is still another way:
$a = $b;
$a = $a > $c ? $c : $a;