[ad_1]
All depend on the situation in hand. Both are valid but for multiple scenarios this one is quicker and much more efficient
$a = $b == "" ? "default" : $b;
[ad_2]
solved Which is the most efficient way to work around the first one or the next one?