Replacing Ternary Operators With the Elvis Operator
Because Elvis is the king of rock and roll
In computer programming,
if statements are among the most used control statements. They are found in virtually every programming language, and it’s not too uncommon to end up nesting them in one way or another.
$elvis = true;
$ballad = true;