PHP Ternary Operator
The ternary operator in PHP is used to write Conditional statements that work the same as if-else conditions the only difference between them is the syntax. The ternary operator takes less space in the code which makes the code more readable and easy to understand. It is also …