The ternary operators use to simplify some conditional tag rather than writing lots of line .It is a shorthand of PHP if else statement .
It called ternary operator becasue it handle 3 things i) condition ,ii) result for true and iii)result for false .
Below demonstrate the use of PHP ternary operators .
with ternary operator
In this way it is simple and save our time .