PHP – The Elvis Operator (?:) Explained
In PHP, the question mark immediately followed by a colon like this ?: is unofficially referred to as the elvis operator. The elvis operator is a variation of the ternary operator that can seem cryptic initially while reading code. However, once it is understood it is helpful way to quickly write code that reduces the …