Answers

Question and Answer:

  Home  Junior PHP Developer

⟩ Tell me how is the ternary conditional operator used in PHP?

It is composed of three expressions: a condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows:

Expression_1 ? Expression_2 : Expression_3;

 203 views

More Questions for you: