Log in

View Full Version : How is the ternary conditional operator used in PHP?



seo.gops
09-05-2021, 03:48 PM
How is the ternary conditional operator used in PHP?

kajalescort
09-05-2021, 05:13 PM
The ternary operator is a shortcut operator used for shortening the conditional statements. ... The order of operation of this operator is from left to right. It is called a ternary operator because it takes three operands- a condition, a result statement for true, and a result statement for false