Okay, I know the mark must be extremely small to test, but I notice the "Conditional operator" slightly use less php memory.
which here is my test;
or (Conditional operator)
Same type of idea, just using a different method. but as building larger application, speed and resources are critical.
$orderType = $oType == 'DESC' ? 'DESC' : 'ASC' ;
also just realized could use the "switch/case" in this test as well.
Which you rather use? if statement yes is easier to read.
case 'DESC':$orderType = 'DESC';break;
case 'ASC':$orderType = 'ASC';break;